Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change all labels on form to diff color
Message
From
27/08/1997 08:57:39
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00045953
Message ID:
00047103
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
>
>Well I'm reading a 3rd party book and it says to make your own default classes which I am coming upon now.

You won't regret it. Ican't begin to explain how much time using your own base classes will save you. BTW the syntax you mentioned above will also not work if the labels in questoin are also members of a container such as a pageframe. You would need to say Thisform.mypageframe1.SetAll("forecolor",RGB(255,255,0),"mylabel").

Erik
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform