Jump to content

"Auto - resizing" of tree control... how do I do it?


PA-Paul

Recommended Posts

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)

Link to comment

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 :

post-7452-126051464068_thumb.png

You need to select each column and set there width.

Hope this helps

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.