Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need assistance creating a Control control
Message
De
17/08/2005 14:40:37
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040983
Message ID:
01041756
Vues:
22
Hi David,

I realize that is how a Control control works. What I was hoping for was that there'd be a way to see the results at design time when I set the custom caption property. Something like a "hook" or "builder" could do it (not sure that I used the correct terms here) ?

Mike


>Mike,
>
>Can't do it. Control subclasses by definition do not allow the internal objects to be exposed, everything must be done via properties/methods of the Control class itself, which will delegate the message on to it's internals as it sees fit.
>
>If you want to have "public" access like this to the internals change it to a Container.
>
>>I'm trying to create a custom button based on the FoxPro Control class. It uses a label to show the button's caption and the shape is used to set the button's shape.
>>
>>I was hoping that at design time, when I set the control's caption, there'd be a way (hook?) to set the label's caption so that I don't have to actually run the form to see what the control would look like. As it is, I have to "work blind" at design time since all the controls say "Label1" for the captions :(
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform