Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change all labels on form to diff color
Message
De
25/08/1997 17:03:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00045953
Message ID:
00046797
Vues:
47
>>>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform