PA-Paul Posted December 10, 2009 Report Share Posted December 10, 2009 Hi all. I'm putting together a UI that uses a tree control which should always display only two columns. I'm suing Panes to control the layout of the UI if the window size is changed. IF I set the tree control to scale with pane, the outer size of the control scales, but I end up with loads of empty columns. If I then reset the number of columns back to 2 using a property node, the width of the entire tree control shrinks back to the original size leaving me lots of empty space. Does anyone know a way to make the colums of the tree control automagically resize - i.e. they should grow if I only have 2 columns displayed and i stretch the control width-ways... Any help would be greatly appreciated! Cheers Paul (This is in LV 8.6 btw) Quote Link to comment
Ton Plomp Posted December 11, 2009 Report Share Posted December 11, 2009 If you install the latest edition of the Variant Probe, yo will find the following VI inside your user.lib user.lib\_LAVA\VariantProbe\Resize Tree.vi In the owning XControl I have registered for the Pane.Size Event, and set the tree control to 'Resize with pane' Ton Quote Link to comment
Antoine Chalons Posted December 11, 2009 Report Share Posted December 11, 2009 Hi all. I'm putting together a UI that uses a tree control which should always display only two columns. I'm suing Panes to control the layout of the UI if the window size is changed. IF I set the tree control to scale with pane, the outer size of the control scales, but I end up with loads of empty columns. If I then reset the number of columns back to 2 using a property node, the width of the entire tree control shrinks back to the original size leaving me lots of empty space. Does anyone know a way to make the colums of the tree control automagically resize - i.e. they should grow if I only have 2 columns displayed and i stretch the control width-ways... Any help would be greatly appreciated! Cheers Paul (This is in LV 8.6 btw) Hi, Here is a quick example : You need to select each column and set there width. Hope this helps Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.