Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a property to a HEADER
Message
From
02/10/1997 16:15:24
 
 
To
02/10/1997 14:21:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00052899
Message ID:
00052940
Views:
38
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform