LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subpanel and modal window

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?

0 Kudos
Message 1 of 9
(3,831 Views)

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?

 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 9
(3,819 Views)

edit

0 Kudos
Message 3 of 9
(3,799 Views)

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

0 Kudos
Message 4 of 9
(3,792 Views)

Make sure the pop-up windows closes itself as it exits. I suppose you dont change the sub-panel until after the popup.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 9
(3,783 Views)

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? 

0 Kudos
Message 6 of 9
(3,778 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 9
(3,774 Views)

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?

0 Kudos
Message 8 of 9
(3,770 Views)

@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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 9
(3,759 Views)