03-23-2017 10:59 AM
I can't understand why the button remains still visible when I set the option "visible" to "false" in the TestExec.rc
Is that set again somewhere after its initialization?
03-23-2017 11:02 AM
If you have the button still connected to the manager control, visibility is set by that connection during execution of the UI when a sequence is loaded and can be executed.
03-23-2017 11:15 AM
Thank you very much, it seems to work.
and what about changing the caption? the string "Single pass" or "ENTRY_POINT_2" is not found anywhere in the files 😞
Thanks,
best regards,
Elena
03-23-2017 11:31 AM - edited 03-23-2017 11:31 AM
These items are ActiveX containers. So they do encapsulate a bunch of functions already.
One is "labeling".
For each control, TS checks its connection and reads out the appropriate label from the language files.
You can find the language files in <TestStand Directory>\Components\Language directory. There is by default only an English one.
When generating custom languages, you should move to <TestStand Public>\Components\Language\YourLanguage.
03-30-2017 04:16 AM
Hi Norbert,
lately I have been interrupted for some days on my job on TS,so I haven't tried your last suggestion.
However, maybe I did not express myself clearly. I do not want to change the language of the button label. I just want to replace the existing text with something else. For example, I would like to replace "Single Pass" with something like "Execute the test".
In the code I cannot find the place where the string "Single Pass" is written.
Sorry if my questions may seem odd, but I am a firmware developer and I rarely develop PC application SW.
Thanks,
Best regards,
Elena Bolzonella
03-30-2017 06:01 AM
As i said: The string "Single Pass" is defined in the language files. The ActiveX button element reads out that string per API.
There is no manual way to change that string other than:
- Use a normal button and implement code to interlink that with the TS function (e.g. transfer click to ActiveX button "DoClick" method)
- Modify/Create new language files
03-30-2017 11:43 AM
To change the caption, I changed:
this.axSequenceFileViewMgr.ConnectCommand(this.axEntryPoint2Button, CommandKinds.CommandKind_ExecutionEntryPoints_Set, 1, CommandConnectionOptions.CommandConnection_NoOptions);
to
CommandConnection commandConnection = this.axSequenceFileViewMgr.ConnectCommand(this.axEntryPoint2Button, CommandKinds.CommandKind_ExecutionEntryPoints_Set, 1, CommandConnectionOptions.CommandConnection_NoOptions);
commandConnection.Options |= CommandConnectionOptions.CommandConnection_IgnoreCaption;
this.axEntryPoint2Button.Caption = "Execute the Test";
03-31-2017 02:28 AM - edited 03-31-2017 02:29 AM
Thanks James,
good to know.
EDIT: Is there a specific reason why you do not set the IgnoreCaption flag directly in the command connection line?
03-31-2017 10:15 AM
I only used multiple lines to make the data type apparent in my reply.
04-03-2017 05:42 AM
Dear James,
thanks a lot for your suggestion!
Unfortunately, at the moment I cannot proceed and try your solution because my boss told me to work on something else...
However, I hope to resume my UI customization soon and let you know if that works for me too!
By the way, have you ever tried the resize of the window also? Our customer wuould like it to be activated. If you could provide suggestion to me also for that, I can try both things at once as soon as I return to work on the UI.
Thanks a lot,
best regards,
Elena