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