07-31-2015 02:57 AM
i am using installpopup and removepopup in my application to display and remove a child panel.
my question is that when i open a child panel then i dont want my parent panel to receive any events at any of my callbacks of parents panel and when popup is removed then parent panel is again activated. in simple words i want to deactivate my parent panel when a popup is installed.
thanks in advance
07-31-2015 03:48 AM - edited 07-31-2015 03:48 AM
Hello there!
I think the solution you are looking for is somewhere along the lines you just posted: using the InstallPopup LabWindows/CVI function.
Here are a few source where you can learn more about creating modal dialogs/panels, which are essentially stacked windows which block the input of the underlaying panels:
Best regards!
- Johannes
07-31-2015 05:28 AM
thanks alot for the answer , my dear friend this example shared does not fulfill my requirement as i have checked it , when a child panel is open using popup then if i click at command buttons of the parent panel then events are bieng generated which i dont want , actually i want my parent panel command button callbacks to be scilent and not checking for events if a child panel is active using popup.
thanks in advance once again.
07-31-2015 11:08 AM - edited 07-31-2015 11:09 AM
Hello smartprogrammer, are you aware of this note from the help for InstallPopup?
Note While you can pass a child panel to this function, it is not recommended. Although the panel will retain its status as a child panel, it will not behave like one while it is modal, which might produce unpredictable results elsewhere in your program. |
Is there a special reason to use a child panel? Can you rethink your framework so that a regular panel is used?
Note: I suppose this discussion and this other one are strictly related: am I right?