Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control resizing in grids
Message
De
18/06/2007 16:25:00
 
 
À
18/06/2007 16:21:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01234081
Message ID:
01234111
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform