Sorry, guess my example wasn't too hot.
Here's what I am talking about
You have a control 'myControl' or something which contains a label 'myLabel'. The control has a custom property named 'cCaption'. What I want is to change value of 'cCaption' and have it change the text displayed in the label (ala. myControl.myLabel.Caption=cCaption).
The trick is I want this behavior in the Form Editor; I know how to do it while the form is running (Refresh() and Init() events). But the methods don't fire inside the Form Editor (thank god). But I want to make my own custom widgets and I want them to respond to property changes the way the VFP controls do.
THanks,
Tom
P.S. Man if the knicks don't win this game... I don't know, I'm gonna lose it
>>The idea is that I have a control, for simplicity say it's just a label. The control has a property 'cCaption' that's the caption for the label. What I want is to be able to set the cCaption property in the Form Designer/Properties window and have that value be reflected in the design window at design time.
>>
>
>Hi Tom:
>
>If I did understand you properly, right click on the control and select Properties. Then look for Caption and in the data entry field, enter the name of control. You will immediately see the change on the control which is on your form.
>
>Hope it helps.
>
>- Ravi
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only