Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color of the Drop down button for a ComboBox?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00233953
Message ID:
00234110
Views:
30
>>>My client what to see better the focus in all my forms. In order to show the focus in a CBOBOX, she ask me to change the color of the drop down button only when it is in focus.
>>>
>>>I cannot find the property for this. Is there a setting in windows that can help?
>>
>>The color of the button is set in Windows Control panel. You can't change it.
>
>Thank you ! But I like to change the color only when the cboBox as the focus.

You can try putting a shape over the cbobox. Size it to the size of the down arrow button. Set the properties of the Shape like this:

.DrawMode = 14
.FillColor = RGB(0,0,255)
.FillStyle = 0
.Visible = .f.

Put Code in the Click() of the Shape to Drop the cbobox down:

KeyBoard '{Alt+DnArrow}' && Not sure about this one,
** but there is some combination that works

Put Code in the cbobox GotFocus() to make the Shape Visible and in the LostFocus() to make the Shape not Visible.

HTH
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform