Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding existing control to form
Message
From
15/09/2004 19:24:46
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00942668
Message ID:
00942679
Views:
15
Hi David

I thought as much. What I was wanting to do was to share the same runtime control (only one instance) between two sub forms. I can set up a reference to another object but the user cannot use it.

I figured that this would not be possible but wasn't sure.

Regards
Geoff

>Geoff,
>
>Is this control something you have done in a VFP class itself? Is it in a .prg or in a .vcx classlib?
>
>If it's in a classlib reuse is trivial. You can drag the class out of the project manager and drop it onto your form. Or you can point the form controls toolbar at your classlib and pick it from there. I prefer to get them from the PM itself because the toolbar is pretty useless when you have lots of classes derived from a few baseclasses.
>
>If it's in a prg you can only use it at runtime by using thisform.AddObject() to add it to the form. But you can pretty easily convert your prg class to a visual class to make it useable at design time.
>
>>If have a pre-existing control can I add it to my form?
>>
>>Is it possible to share the same contol between forms?
May all your weeds be wildflowers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform