Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing a treeview inside a container
Message
From
13/05/1999 03:56:12
 
 
To
13/05/1999 03:42:21
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00218262
Message ID:
00218265
Views:
19
>Hi all,
>
>I'm having some problems with version 6 of the MS Treeview control in VFP 6.
>
>The scenario is: I've created a class based on container, which contains a treeview control and the functionality to populate it etc.
>
>Part of the functionality is to resize the treeview to be the same size as the container at run-time. This also allows the user to resize the form and have the container [and the treeview] resize.
>
>However, the treeview always seems to be bigger than the container - evident because scrollbars are not displayed.
>
>If I don't size the treeview at all [i.e. just display it as it was set at development], the scrollbars appear as appropriate.
>
>The code I'm using to resize the control is in the resize event of the container, and is as follows:
>
>with This.oleTree
> .Height = This.Height - (this.top + 15)
> .Width = This.Width - (this.left + 15)
>endwith
>
>When this is executed, the container has already been resized. The scalemode of the form is set to "pixels".

Did you try to refresh the control after the resize ?

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform