Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add object to Control class?
Message
 
 
To
19/03/2005 12:44:23
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00997603
Message ID:
00997606
Views:
12
>*** VFP9 Beta ***
>
>I created my custom control based on the Control class. I initially placed a label and a command button on a form, positioned them as I needed then Saved As Class...
>
>Now I need to add another control (a shape) to my control but everytime I'm told that I cannot add to a "non-container" class. Does this mean that I have to start all over again? If so, that would be really annoying :(

I've no problem adding a shape to the control based class in VFP9RTM. My steps:
1. CREATE CLASS mycontrol as control OF test
2. Drop a label and a button
3. Close Class Designer and save class
4. MODIFY CLASS mycontrol oF test
5. Add a shape
...

BTW, VFP9beta expires at the end of the month.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform