LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

resizing the main panel - is it possible?

Solved!
Go to solution

I want the main panel of my application to resize automatically at start up depending on which hardware is connected. 

Am I correct in believing the correct command for this is SetCtrlAttribute ?  I'm having trouble trying to find which panel handle to pass though.  The main panel has the default handle 'panelHandle' and the controlID PANEL.  I've tried passing panelHandle and 0 as the arguments for the panel handle but in both cases I get non fatal runtime errors on execution.  I have not edited the uir header file at all.

 

Thanks for any help.

 

Gareth

 

0 Kudos
Message 1 of 4
(3,180 Views)
Solution
Accepted by gv1971

You need to use the SetPanelAttribute() function.

 

JR

Message 2 of 4
(3,171 Views)

Fantastic!  Thanks!  I'd convinced myself that it must have been the setctrlattribute function and I was using it wrong.  Didn't realise there were functions just for controling the panel alone.

 

 

0 Kudos
Message 3 of 4
(3,160 Views)
Or SetPanelSize() and SetPanelPos()
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 4 of 4
(3,139 Views)