Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing behavior in the Class/Form Designer
Message
 
To
26/01/2002 16:19:35
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00611103
Message ID:
00611158
Views:
28
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
Map
View

Click here to load this message in the networking platform