General information
Category:
ActiveX controls in VFP
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only