Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with combo box border color
Message
 
 
À
21/09/2010 18:16:07
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01482219
Message ID:
01482252
Vues:
53
>>>I've put a standard combo box (the default one that comes with VFP and not sub classed either) on a form and tried to change the border color to red (255,0,0) from the default color (100,100,100) in the properties dialog. It does not change to red but remains gray. The same happens for a list box, an edit box and a text box. The same does NOT happen for a container. It's border color WILL change to red from BLACK even though the default border color is (100,100,100) for said container!!!
>>>
>>>So, my question is, why does a default border color of (100,100,100) appear grey for a text box, edit box, list box and combo box but black for a container? How do I get the border color of a container to look the same as the default border color for say, a text box?
>>>
>>>If it matters, and you haven't read it, I'm using Windows 7 with VFP9 SP2.
>>
>>For the Container you can change BorderColor. For the other controls the border color is controlled by the theme and can be changed through changing theme in appearances.
>
>Hi Naomi. My problem is, how do I determine the border color of the themed controls so that I can set the containers's border color to be the same. I want ALL controls to have the same border color for consistency. As I said, the themed controls all have a border color of (100,100,100) and it appears "gray" to me, It is not nearly the same as the color I observe for the container's border color set to (100,100,100) that looks "black". Why?

This thread may be slightly relevant Thread ID: 1443441 I'm not sure about exact Windows API you need to use to get your info (may be SystemParametersInfo)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform