LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

steer panels with buttons

Hello everybody,

I would like to steer with some buttons the appearance of some sub-panels, where one is above the other.

When I push for example "Button_1" the "panel_for_Button_1" is at top.
When I push for example "Button_2" the "panel_for_Button_2" is at top. ...

How can I steer the panels to get one the uppest? Or is that not possible?

thx for answering
0 Kudos
Message 1 of 4
(3,099 Views)
I don't know if this is the case, but to make one panel active it is sufficient to use

if( ) SetActivePanel( panelHandle);

or you can use the construct you like best.... anyway, the function is SetActivePanel().

Hope it helps.
0 Kudos
Message 2 of 4
(3,091 Views)
I will try it with this function, thx.
0 Kudos
Message 3 of 4
(3,089 Views)
Hello Greber.

You may be able to use this also, to control the way the sub-panels overlap:

SetPanelAttribute (panelHandle, ATTR_ZPLANE_POSITION, 0);

From the attribute help:

"Constant: ATTR_ZPLANE_POSITION
Data Type: int
Description: The drawing order of the child panel. The panel with the lowest number (0) is drawn last (i.e., on top).
Valid for child panels only."

Colin.
0 Kudos
Message 4 of 4
(3,079 Views)