Hello,
I am working on a project in LabWindows/CVI 6.0 and I am using ActiveX controls for a SCARA robot. Before calling RunUserInterface I run an initialization function that creates an ActiveX control, opens a port to the robot software, builds a project in the robot software, and sets up an events received callback from the robot software. This event callback is fired by the robot software when certain events occur, such as motors turning on/off, estops activating, and robot errors occurring.
The problem I am experiencing is when I receive an event with the event received callback I display a MessagePopup with text reflecting the error that occurred. With the MessagePopup displayed, clicking on a panel outside the popup region causes the popup to disappear. Using alt-tab I can then switch to the popup and acknowledge it but this is not acceptable for my application.
I always thought a MessagePopup would remain on top all other panels until a user acknowledges it. This problem only occurs when the MessagePopup is created from the event received callback. How do I prevent this popup from dissappearing when I user clicks on a panel behind it? I could create a dedicated message panel and when an event is received dim all currently displayed panels before displaying the message panel, but I thought this was the purpose in having message popups.
My panel structure consists of a parent background_panel with two child panels displayed at the same time, one named navigation_panel and the other database_panel. Both of these child panels have their ATTR_ACTIVATE_WHEN_CLICKED_ON set to 0 immediately after being loaded.
Thanks for the assitance.
- Aaron