Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change all labels on form to diff color
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00045953
Message ID:
00046984
Views:
55
>>>OK, Jim, I put Thisform.SetAll("forecolor",RGB(255,255,0),"label") into the init section and no changes are apparant at all.
>>
>>Timothy,
>>
>>Are your lables base class labels or comming form your subclasses? I just made a form, put four labels from teh base class Label in it and four labels from my label class in it. In the INit I put THISFORM.SetAll("ForeColor",RGB(255,0,0),"Label") anmd teh base class label'ss color changed but the labels from my class did not. This si what I expected as the class I affected was the Label class and not lblBase class.
>
>I guess they are base classes. Is this what foxpro defaults to?
Timothy,

You can look at the class anmd parent class properties in the Properties sheet for the labels to see what class they come from. You need to use the value of the Class property in the SetAll() call.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform