Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get MyClass.MyCheckbox into a grid?
Message
De
25/01/2008 15:04:11
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01285496
Message ID:
01285627
Vues:
31
>>>>>>Got a CheckBox in a class library and want to use it instead of the default TextBox that's in one of the columns of my grid. How do I do that? Visually at design time. Thanks!
>>>>>
>>>>>Just make sure your custom CheckBox is in the form controls toolbar, then drop it onto the grid like any other control.
>>>>
>>>>And THEN change the CurrentControl property of the column in the grid.
>>>
>>>
>>>I didn't mention that I always delete the default Textbox in the column first. CurrentControl must then be updated automatically when a custom control is dropped in because I never need to do that manually.
>>
>>What's the use of deleting it? At times one may want to undo the change.
>
>
>It's easy enough to add the original control back if I change my mind. For me it just muddies the water to have two controls in one column.

I agree. I always think that there's a reason for it, like switching the object type during runtime, etc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform