LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Zooming of panels

How to zoom out the panels by just clicking on it?
0 Kudos
Message 1 of 2
(2,969 Views)
In the UIR editor set a callback for the panel (Edit >> Panel... menu or double-click on an empty place inside the panel), and it the panel callback trap EVENT_LEFT_CLICK or EVENT_RIGHT_CLICK or whichever event you decide: use SetPanelAttribute (panel, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE) to enlarge the panel, VAL_MINIMIZE to reduce to icon and VAL_NO_ZOOM to restore to original dimensions.

Be careful that if you click on a control with a collback associated to it, the control callback will be triggered, not the panel callback.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,969 Views)