Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control resizing in grids
Message
De
20/06/2007 00:33:42
 
 
À
19/06/2007 20:29:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01234081
Message ID:
01234425
Vues:
15
>VFP help does say:[For a Column object, you can trigger Resize in code by setting the Width property for the column.] It doesn't appear to do so.

You are right and that does appear to be either a bug or an error in the documentation.


>As for the rest (I'm near blue in the face trying) it seems like if you have a combination of width changes anywhere within the resize events, it ignores the width change. Maybe to avoid conflicts.

Exactly what I was trying to say, you CANNOT resize a container in a grid. Top, Left, Width and Height are all non functional when a control is in a grid. They do not cause an error but they have absolutely no effect on the control. If you look at the property manager they cannot be set from there either. I'm pretty sure that that behavior is by design.

However, if you use the steps I gave you the resize event should become irrelevant.

See my previous message for the technique, if you don't get how to do that ask and I will explain further.

To speed things up, add a nPreviousColumnWidth property to the container and only resize the controls when this.Parent.Width does not = this.nPreviousColumnWidth.
*** backstyle_access Method of container object
IF THIS.nPreviousColumnWidth != this.Parent.Width
  *** You Resize Code Goes Here
ENDIF
THIS.nPreviousColumnWidth = this.Parent.Width
RETURN
Hope that helps.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform