05-10-2021 11:44 AM
Hi folks,
This seems like such a simple thing, but I'm stumped.
The end result I'm looking for is a "Terminate All" button on my TestStand UI with a little red square and three dots instead of a caption. I'm using TS2020 x64.
This UI will be used primarily in Thailand and China, and no matter what I've tried I can't get a simple, language-agnostic icon to appear on my button.
The application will test UUTs indefinitely in parallel until the operator terminates all sockets.
The first thing I tried:
Another thing I tried:
Unfortunately the FindImage method and the Image property of the button have incompatible types, where one is an interface to an image and the other is an image object.
I must be overcomplicating this. Has anyone done something like this successfully?
Thanks,
Mr. Jim
Solved! Go to Solution.
05-10-2021 03:49 PM
According to the CommandKinds help, CommandKinds.TerminateAll applies to the ApplicationMgr.
I added the following to the full csharp UI example right before the comment // connect controls on the Report tab:
this.axApplicationMgr.ConnectCommand(this.axEntryPoint2Button, CommandKinds.CommandKind_TerminateAll, 0, CommandConnectionOptions.CommandConnection_EnableImage | CommandConnectionOptions.CommandConnection_IgnoreCaption);
This re-purposed the single pass button to be a terminate-all button with only an icon image.
05-10-2021 05:56 PM - edited 05-10-2021 06:05 PM
Hi James,
Thank you so much for your help. I honestly don't know what I was doing wrong but then I did the following with success:
This may have been a case of my staring at it too long? In any case it worked, so thanks again.
Mr. Jim