ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with modal dialog?

Hi All,

 

 

I have one modal dialog, A.vi, and it dynamically controls (launch, abort) another dialog vi, B.vi, which needs to display on top of A.vi. So I made B.vi also modal. The problem is then I lost contorl of A.vi.   If B.vi is not modal, it won't be on top of A.vi.

 

How to do this? Thank for any help.

 

Anne

0 Kudos
Message 1 of 6
(2,941 Views)

Hi Anne,

i have a small question. If B should be on top of A, why do you need to control A? Would it be a solution for you if B is not modal, but on top of A? If yes then you can make B frontmost after showing it.

 

Hope it helps.

Mike

Message 2 of 6
(2,938 Views)

I need to abort B.vi by A.vi, so I still need the control from A.vi

 

 I tried to set B to non modal and make it FP frontmost, and it doesn't work. Its FP still under A, maybe because A is modal.  😞

 

Thanks.

 

Anne

 

0 Kudos
Message 3 of 6
(2,933 Views)

Hi Anne,

maybe it helps if both vi's are floating.

 

Mike

0 Kudos
Message 4 of 6
(2,925 Views)

It works if both are floating, but NOT acceptable to customer, since there is another vi, C.vi, launch A.  If A is floating and the user clicks C on touch screen,

he won't be able to get A FP back on touch screen.   A.vi really needs to be modal.

 

Anne

0 Kudos
Message 5 of 6
(2,923 Views)

Hi Mike,

 

My problem is reasonably solved, though still not perfect, by changing vis FP behavior between modal or default back and forth.

 

Thanks a lot for your reply. Have a nice day.

 

Anne

 

 

0 Kudos
Message 6 of 6
(2,913 Views)