Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cloneobject() in a subclass of a combobox
Message
From
06/11/1998 03:47:10
 
 
To
05/11/1998 11:16:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00154829
Message ID:
00155131
Views:
19
Thanks Cetain,
I llike your idea, but It is different of what I thought because it is a lot of work.
I don't only want to do that for combobox. I would like to do it for textbox, editbox, check, etc...
My idea was duplicate all properties. At desingtime, the developer only has to set the properties of one object, and at runtime, when the container is started up, we get the two objects (exactly the same but controlsource property). In the refres method of the container is choosed wich one is visible.
You probably think "Why don't make only one object and change the controlsource property in the refres of the container?"
I have done it, but it does not work perfect (only in combobox).In case that the first controlsource is a field of a table, and that table has set a filter which select 0 records, and the combobox enabled property si set to .F.. If you change the controlsource property to a variable and the combobox enabled property to .T., you still get like the combobox enabled property was .F. because you can't change the value. Rare but real like the live.
Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform