Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center check box in grid column
Message
De
17/01/2001 09:21:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/01/2001 08:55:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00464533
Message ID:
00464618
Vues:
26
>>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
>
>Thanks for posting this, Cetin. I was facing the same problem before I wandered onto your solution.
James,
You're welcome. For a moment I thought you needed it just now and remembered how lucky I'm :) Believe it or not following story is real (and unfortunately victim is me:)

In Turkey there is kind of lottery where not only one number but many earn prizes. There is 6 digits and one ticket gets the big prize. Others have chance like :
If your last 5 digits matches some numbers
If your last 4 digits matches some numbers
...
If your last 1 digit matches some numbers (here only 2 numbers and gets ticket cost)
So say if you buy 10 tickets where last digit is from 0 to 9 you guarantee to get back 2*ticket cost :)
Once I got 8 tickets (financially couldn't buy 10) leaving only 2 digits in 0-9 sequence and guess what :) I earned nothing (I think they teach us probability wrong:)
Funny I should be the only one that never won anything from that lottery in his life.
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