Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing behavior in the Class/Form Designer
Message
From
26/01/2002 20:23:03
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00611103
Message ID:
00611178
Views:
24
Tom,
You can change the caption property of your label class in the class desginer.
The change should be reflected in the form in the form designer which contains
the label based on the the label class.

Kam.
P.S. The Knicks broke my heart.

>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
Reply
Map
View

Click here to load this message in the networking platform