Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control resizing in grids
Message
From
18/06/2007 16:25:00
 
 
To
18/06/2007 16:21:25
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01234081
Message ID:
01234111
Views:
16
>thanks Ed,
>
>Ok...(I'm changing so many things in this form, I'm getting cross-eyed)
>
>The grid is anchored and the in resize event I have [this.column1.Width=this.Width-20]
>
>two things appear to happen (rather not happen)
>1) the column.resize event does NOT fire (maybe got a bug?)
>2) while the container does resize, the controls inside do not respect their anchor setting
>
>Now if I programmatically change the individual control's values in the Grid.Resize event, they DO change
>...but that's kinda crude. I'm thinking just setting the anchor values should do the trick
>
>Bill

If container itself is resized propery you may use some code in container class resize event (instead of column resize) to resize components. This way it would not be crude. I didn't try but it seems to me that column should not be affected by grid.anchor.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform