Hi Martin,
I reached the stage of being able to store control templates c/w switch drive markings (slider ribs 102, drive slots 101, motor marks 103,104,105) to the background so that they are displayed in the box with those markings, and being able to select one of thos & copy to the control with all its parameters.:-
Then I tried adding the code to keep_select.pas that outputs block 30 to the .box file, and loads block 30 from the .BOX file, BUT and it is a big BUT I just keep getting ACCESS VIOLATION errors and other verrors which seem to change their nature if I switch on debugging etc.
I have been going round in circles for several days now, so It is time to throw in the towel and ask for some help!
It was outputting the new XML fields in ebk1.ebk & pb.ebk etc but with some invalid segmenst etc.
Its driving me mad,and probably is a case of not seeing the wood for the trees.
I am hoping that it is a simple error, but knowing my luck it will be a complicated error.
So I have commented out the XML stuff (possibly labelled SC 30-NOV-2024, and sbc ????) and zipped up the sources and a version that at least lets you see and play with the new screens, but won't actually save the new parameters in a .BOX file.
I think the sbc ???? comment is where there might need to be a test to cater for the .BOX file version change, but this might mean that the version needs bumping to 557.
As a diversion I started on the switch fittings parameters, and added a new button, but need the defaults for the two switch anchor fields...
so just ignore the [ switch fittings ] button for now, apart from this question...
Would it be ok to replace the field name & caption of "switch anchor stock rail bolt from toe" with "switch anchor bolt position", and then explain what that means in the help text displayed by the [? info] button.
I have populated the [? info] button help text, but it needs checking for veracity etc.
I have attached a zip of the sources in the hope that you need a diversion and might be able to advise on where I have gone wrong.
Steve