11-04-2014 08:49 AM
Hello
I have problem with subpanels.
Lets say subpanel 1 is active now. Some modal dialog is called from that active subpanel. After that I want to load another subpanel and I don't want this modal window to be on top. Popup is modal because user has to select something before this loop continiues.
Does anyone know how to work around that?
11-04-2014 09:23 AM
A pop-up window need not be modal (If you have issue handling the modal windows).
Are you saying that if the user did not make any input the modal window still stays on top event after changing the sub panel VI?
11-04-2014 12:17 PM - edited 11-04-2014 12:20 PM
edit
11-04-2014 12:21 PM
P@Anand wrote:
Are you saying that if the user did not make any input the modal window still stays on top event after changing the sub panel VI?
That is correct. This popup is for user ti input some sequence parameters, it should be on top of that subpanel and cant be skipped.But when I change active subpanel this windows stays on top.
Other solution might be to ged rid of popup and replacing it with tab controll ( new tab for each popup) on subpanel but I think that's not elegant way
11-04-2014 01:00 PM
Make sure the pop-up windows closes itself as it exits. I suppose you dont change the sub-panel until after the popup.
/Y
11-04-2014 01:12 PM - edited 11-04-2014 01:13 PM
It may happen that I change supbanel when popup is active.
I have error handling with interface that is loaded as active in subpanel when error appears. Lets look on situation like that one:
User is doing something in active subpanel ad calls popup. Popup is active and then error comes. So error handling thread is set as active but that popup stays on top of error panel.
How should I solve that?
11-04-2014 01:20 PM
Removing the panel doesn't kill it, that's probably why you still have the pop-up. In this case, and if the error is important enough, you need to kill or send an abort-event (you then need to create a message system for all sub-vi's to react to) before switching the subpanel. Else error message should be queued up and shown after the popup.
/Y
11-04-2014 01:33 PM
I think that's best solution. In that case all popups should register UE from error handler that will close them when error happens.
Normal errors are handled in each subpanel. Only most important errors that can happen at any time (emergency button etc) are handled globally and that's when error subpanel comes on top. After error is solved app should resume where it stopped.
Maybe if I display Error handling thread not as subpanel but as modal window it will come on top of other windows?
11-04-2014 02:18 PM
@apapasd1sd wrote:
I think that's best solution. In that case all popups should register UE from error handler that will close them when error happens.
Normal errors are handled in each subpanel. Only most important errors that can happen at any time (emergency button etc) are handled globally and that's when error subpanel comes on top. After error is solved app should resume where it stopped.
Maybe if I display Error handling thread not as subpanel but as modal window it will come on top of other windows?
I cant say of the top of my head what happens if you pop several modal windows, it should be easy enough for you to test. 🙂
/Y