|
-
Oct 7th, 2009, 03:34 AM
#1
Thread Starter
Hyperactive Member
Loop height of treeview
Hi there,
is there any possible to loop height of a treeview? I would like to fit the height of a main window application to the height of a treeview.
Regards.
VB6
-
Oct 7th, 2009, 06:06 AM
#2
Re: Loop height of treeview
Not quite sure what you mean, but maybe something like
Code:
Treeview1.Height = Me.Height
-
Oct 7th, 2009, 06:35 AM
#3
Thread Starter
Hyperactive Member
Re: Loop height of treeview
Thanks hack. Maybe You know the effect like auto resizing of height? For example if the main window goes to full screen, tree view inside also auto resizing its height. Just like in the Visual Basic ( project sample window ). Height of a tree view, and the main application are connected together all the time ( looping or something ).
-
Oct 7th, 2009, 07:34 AM
#4
Re: Loop height of treeview
Perhaps you are referring to the reentrancy problem in Resize?
If so, try this:
Code:
Private Sub Form_Resize()
Static Busy As Boolean 'retains value across calls
If Busy Then Exit Sub
Busy = True
Height = TreeView1.Height
Busy = False
End Sub
-
Oct 7th, 2009, 07:58 AM
#5
Thread Starter
Hyperactive Member
Re: Loop height of treeview
Thanks VB, not exactly. I'm referring to something like that:
Code:
Private Sub Form_Resize()
Me.TreeView1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub
When I changing the main window size ( for example height ), at the same time treeview should also changing its size. Above code is only the clue what I found in VB forum but I suppose there is some little more advanced.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|