05-22-2012 03:32 PM
I am catching the UIMessage UIMsg_StartFileExecution and wish to update my UI to indicate which SequenceFile is being executed. I cannot figure out how to determine which SequenceFile is associated with this message. Both the UIMessage.Thread and .Execute are null and StringData is empty.
The documentation for this message states "TestStand sends this message when it begins using a sequence file. TestStand specifies the file in the UIMessage." I don't see where TestStand specifies the file. Is this a bug in TestStand, the documentation or on my end?
I am capturing messages by registering the callback with RegisterUIMessageCallback() through C#. I've also tried getting the message through GetUIMessage() and both produce the same result.
Any ideas are appreciated. Thanks.
Solved! Go to Solution.
05-23-2012 09:38 AM
I think it's in the ActiveXData property (do "as SequenceFile" on the object it returns). Also, you might consider using the ApplicationMgr control and handling the UIMessageEvent event as a .NET event. That is the recommended approach.
Hope this helps,
-Doug
05-23-2012 01:25 PM
This is exactly what I was looking for!
I wish the documentation were more specific regarding what type ActiveXData will hold for each event type; but I suppose it is usually easy to guess.
Thanks.
05-24-2012 10:16 AM
I will request that the documentation get updated to be more specific.
Thanks,
-Doug