Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change all labels on form to diff color
Message
From
25/08/1997 17:03:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00045953
Message ID:
00046797
Views:
52
>>>>>>Timothy,
>>>>>>
>>>>>>Thisform.SetAll("forecolor",RGB(255,255,255),"label")
>>>>>>
>>>>>>change the rgb arguments to use the color you want.
>>>>>
>>>>>I put this into the code section of the form but it had no effect.
>>>>>My form has a blue backcolor and the labels remain black, on the blue background
>>>>Timothy,
>>>>
>>>>Which "code section" did you put the code in?
>>>
>>>into the activate section of the form
>>Timothy,
>>
>>The activate only fires if the form lost focus and then regained it. Move the code to the form's Init/
>
>OK, Jim, I put Thisform.SetAll("forecolor",RGB(255,255,0),"label") into the init section and no changes are apparant at all.

Are your labels based on the VFP base class? If not you need to change your command to read Thisform.SetAll("forecolor",RGB(255,255,0),"mylabel"), or whatever the name of your custom label class is.
If so- WHAT THE HELL ARE YOU DOING USING THE BASE CLASSES? :-)

HTH

Erik
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform