Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center check box in grid column
Message
De
17/01/2001 08:51:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00464533
Message ID:
00464603
Vues:
55
>I read here once (long ago) to center a check box in a grid column, you should put the check box in a container and center the container in the column. I'm not sure my memory is accurate, because I'm trying that without success. So, how does one center a check box in a grid column? fyi, my check box has no caption, the sparse property of the column is .F.
>
>Thanks

Mark,
You heard right :) Create a container with backstyle transparent and borderwidth = 0. In it place a checkbox with no caption and backstyle transparent. Add container to grid (say column1) and set currentcontrol to container (say container1) :
* Grid.init
with this.Column1
 .Container1.Check1.Controlsource = .Controlsource
endwith

*Container.init
with this.Check1
 .Left = (this.Parent.Width - .Width)/2
endwith
If you want it to resize as column resizes, in column resize call container1.init.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform