Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Background color
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00181975
Message ID:
00182032
Vues:
13
Yeah, that's a good idea. I'll do that.

Thanks,

-Michelle


>Yes, I saw that Ed sugested the transparent thing...I just wanted to suggest that you remember that property. It seemed like the other idea may have dismissed the first idea which I thought was a good one. There are so many properties in different controls that sometimes it is hard to remember them all. The BackStyle property is a nice one to set in your base class to transparent which is not the default (for whatever reason).
>
>Take it easy,
>Joe
>
>
>>Yeah, that was the first thing Ed suggested. I set them to transparent.
>>
>>Thanks,
>>
>>-Michelle
>>
>>
>>>Just a note: Remember the BackStyle property. It is nice in some situations. If you have a label that is on the edge of a shape control (half on the shape and half on the form) and the shape is a different colour than the form (I use the shape to separate some sections of data in data entry forms), the label will have no background colour, so over the shape it'll be the shapes's colour and over the form, it'll be the form's colour.
>>>
>>>I set the property to transparent in my base class.
>>>
>>>Joe
>>>
>>>>>>>>>>>>>>Is there a way to make the background color of controls be whatever the color of the form is? I'm trying to create the illusion of a report on a form by getting rid of borders so it looks like the text is right on the form. But if they change their system colours (I checked) the background stays grey.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Thanks,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>-Michelle
>>>>>>>>>>>>>
>>>>>>>>>>>>>What controls you mean? Note, that BackStyle=0 (transparent) would help here.
>>>>>>>>>>>>
>>>>>>>>>>>>Labels, textboxes, and list boxes. I'll look into BackStyle.
>>>>>>>>>>>>
>>>>>>>>>>>>Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>>-Michelle
>>>>>>>>>>>
>>>>>>>>>>>BackStyle should help you. Also, there is no magic in:
>>>>>>>>>>>ThisForm.SetAll("BackColor",Thisform.Backcolor,"Textbox")
>>>>>>>>>>
>>>>>>>>>>It keeps telling me that property backcolor is not found. I checked and the page and listbox both have backcolors as well as the form. Any ideas?
>>>>>>>>>>
>>>>>>>>>Did you cal it separately, for each class?
>>>>>>>>>ThisForm.SetAll("BackColor",Thisform.Backcolor,"Textbox")
>>>>>>>>>ThisForm.SetAll("BackColor",Thisform.Backcolor,"Listbox")
>>>>>>>>
>>>>>>>>Yep. I cut and pasted your code twice. Then I changed one to Listbox and one to Page.
>>>>>>>>
>>>>>>>Michelle, it seems that Listbox doesn't have BackColor property.
>>>>>>
>>>>>>Ok, it's definitely time to go home. I was looking at an edit box for the property... Sigh...
>>>>>
>>>>>but it has ItemBackColor which is appropriate to use :::)
>>>>
>>>>Cool, that'll work. :)
>>>>
>>>>Thanks,
>>>>
>>>>-Michelle
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform