Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid question
Message
 
À
25/08/1998 09:59:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00129677
Message ID:
00129758
Vues:
24
>I have created a container class with a checkbox centered in it. The purpose of this class is to center checkboxes in a grid. The container works fine in the grid, but when the columns are resized the checkbox dosen't stay center. Is there a way I can have the checkboxes remain center in the grid during resize of the columns?
>I have already tried some code in the containers rezize procedure.
>THIS.WIDTH = THIS.PARENT.WIDTH
>THIS.HEIGHT = THIS.PARENT.HEIGHT
>So far no luck. Thanks in advance for any help offered.

John,

As Ken said put the code in the column's resize;

THIS.Container1.Width = THIS.Width

Then in the container's Resize put this;

THIS.CheckBox1.Left = INT((THIS.Width - LEN(THIS.CheckBox1.Caption))/2)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform