LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

modal resizable panel

Is it possible to have modal resizable panel in CVI? Popups, it would seem, are modal but cannot be resized.
0 Kudos
Message 1 of 4
(3,181 Views)
Hello

You can create custom popups by using the InstallPopup function and you can treat them like normal panels, you should be able to set them to what ever size you need

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,181 Views)
Thanks, but I meant for the user to re-size them. My question has been answered by Chris Matthews
0 Kudos
Message 4 of 4
(3,181 Views)
I believe you are asking if you can make modal dialogs (popup panels in CVI) that are resizable by the user. The answer is no. Sizability is restricted in modal dialogs in Windows and our popups conform to the modal dialog restrictions. You could size the panel before displaying it, but if you want the user to be able to size it, you will not be able to use popups.

You could get similar behavior (sizable modal window) with a floating panel and a main panel callback that resets the focus to the floating panel if the main panel is selected. It isn't perfect, but I attached an example. You would have to write your control callbacks on the main panel to swallow LEFT_CLICKs when the popup is up also.

Best Regards,

Chris Matthews
National Ins
truments
0 Kudos
Message 3 of 4
(3,181 Views)