Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prob w Highlightforecolor for selected items
Message
 
 
To
26/01/2010 17:35:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01446041
Message ID:
01446076
Views:
66
If I recall correctly, I set backcolor and forecolor on the LostFocus/GotFocus of the textbox, but I forgot all the details. I probably posted this info (should be somewhere around 2000, I think).

I may search tonight for this message.

>Naomi --
>
>Controlled by what properties?
>
>I have tried setting SelectedBackColor and SelectedForecolor for my textbox, but they have no effect that I can see.
>
>It seems that HighlightBackColor works, BTW, but not HighlightForeColor
>
>
>>>I'm trying to set the highlight for the selected row in a grid to have white characters on a blue background. I have set this as follows
>>>
.HighlightStyle = 2
>>>.HighlightBackColor = RGB(0,0,255)
>>>.HighlightForeColor = RGB(255,255,255)
>>>This works fine, except when the the user has selected a cell ... in which case, I get the correct back color (blue), but the forecolor, for the selected cell only, turns to black (making it essentially unreadable).
>>>
>>>It appears that SelectedItemBackColor and SelectedItemForecolor are not relevant here.
>>>
>>>What am I missing?
>>>
>>>Thanks in advance
>>
>>Right. They are controlled on the cell's level.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform