Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing behavior in the Class/Form Designer
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00611103
Message ID:
00611163
Views:
26
Tom:

>myControl.myLabel.Caption=cCaption).

A VFP control that is capable of displaying a caption has a "caption" property. If you take a VFP base class and subclass it, if it (the base class) has a caption property, you just set a value to it from the property sheet and it will be reflected in the control in the form editor. I'm not sure there is much more to it than this.

If you want a programatic way of assigning a value to the caption property without setting it in the caption sheet (and not at runtime), take a look at the VFP function SYS(1270) in help. Basically, hover your mouse pointer over the control you are interested in. In the command window, do

o = sys(1270)

This will give you an object reference to the control in "o". Then, you can say something like.

o.caption = 'MyCaption'

Hope this helps.

-Gary
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform