Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a property to a HEADER
Message
De
02/10/1997 16:15:24
 
 
À
02/10/1997 14:21:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052899
Message ID:
00052940
Vues:
43
>>>I want to add the property "ID" to a HEADER object in a GRID or button object from a RADIO BUTTON or buttom object from a COMMAND GROUP.
>>>
>>>I seem it's possible with VCXEDITOR but I don't know how I can do it.
>>>
>>>Thanks in advance
>>>
>>>Stephan
>>
>>I have never tried this, but assume that you can define your own header class programmatically, adding new property 'ID' into definition. Then, in run-time, you should remove standard header (RemoveObject) from grid.column, and add (AddObject) new header from new class.
>>Unfortunately, you cannot add any additional objects to a header, because this is not container.
>
>BTW, Erik Moore wrote excellent example in parallel thread "Subclassed grid members".

Michel- a custom property can be added to a custom header class with syntax similar to the following
DEFINE CLASS MyHeader AS Header
mycustomproperty
mycustomproperty2 = "Initial value" && Gives property a default value
ENDDEFINE
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform