Mike Sue-Ping
Cambridge, Ontario, Canada
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement