LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Scale some Contents On resize

I would like to know how to scale only one Content on a panel and have the rest remain the same size. Also how to prevent Panel contents from going under a toolbar.
0 Kudos
Message 1 of 2
(3,207 Views)
If you just want to resize one control when the panel grows, I would advise against using the Scale Contents on Resize attribute. You're better off just resizing the control programmatically yourself, whenever you receive an EVENT_PANEL_SIZE in the panel's callback.

CVI 7.1, which will start shipping in a week or two, comes with a splitter control which you can use to pretty much customize what kind of scaling you want. If and when you get this version, check out the example program samples\userint\docking.prj which pretty much does what you are looking for.

Luis
NI
0 Kudos
Message 2 of 2
(3,207 Views)