10-01-2018 07:29 AM
I have ActiveX call of a method PostUIMessageEX and it only displays messages in Teststand status bar if I set up breakpoint in my sequence and then use F10 to execute method call.
For example, see this image:
Here I get string "My STATUS when I use stepping (f10)" in TS status bar, but if i just run TS seq file without breakpoints, i cannot get status...
MyCall of ActiveX method is like this:
I want to use this for displaying status of my program when it is executing in real time.
Solved! Go to Solution.
10-01-2018 08:03 AM
It works for me with TestStand 2014. Make sure that the execution window is the active window. The progress text is only displayed for the active document. It switches when you switch documents.
Hope this helps,
-Doug
10-01-2018 08:13 AM
Hey,
I attempted to reproduce your problem but was able to see the UI message posted using the same code that you provided. Do you see the same thing if you use the following expression in a statement step:
RunState.Thread.PostUIMessageEx(UIMsg_ProgressText,0,"My STATUS when I use stepping F10",Nothing,True)
Thanks,
Roxy
10-02-2018 12:39 AM
That was the solution. Status posted using PostUIMessageEX is only displayed when execution tab is selected. Thanks!