Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need assistance creating a Control control
Message
De
17/08/2005 14:49:25
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
17/08/2005 09:35:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040983
Message ID:
01041758
Vues:
25
Thanks Frank,

That was a helpful tip. Now I just need to make a propery builder out of it :)

Regards,

Mike


>Hi Mike,
>
>maybe this will work for you to see what it will look like without having to run the form:
>
>make sure the command window has focus, position the mouse cursor over the command button, then type these lines in the command window
>
>ox = SYS(1270)
>ox.Caption = "test"
>
>
>This will actually change the caption in the property sheet.
>
>
>>Hi Frank,
>>
>>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 :(
>>
>>I hope that this helps to explain what I was trying to do.
>>
>>Regards,
>>
>>Mike
>>
>>
>>>Hi Mike,
>>>
>>>I may be wrong, but I don't think you can do this at design time. What exactly are you trying to achieve?
>>>
>>>
>>>>Hi,
>>>>
>>>>I'm trying to create a custom control based on the VFP control class. At design time I dropped a label in the control along with a shape. I created a custom property for the control named Caption that has an assign method to change the label's caption. In the control's init event, I set Caption=Caption to force the assign to update the label's caption.
>>>>
>>>>This works fine at runtime. How can I update the label's caption at design time? When I drop a instance of this class on a form, the label and shape objects are not available (since it is a Control control).
>>>>
>>>>Regards,
>>>>
>>>>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform