Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SelectBackColor problem in textbox control of grid column

Status
Not open for further replies.

pcwc66

IS-IT--Management
Dec 14, 2001
163
US
I have a grid which has the following settings:

HighlightBackColor = 49,106,197
HighlightForeColor = 255,255,255
SelectedItemBackColor = 49,106,197
SelectedItemForeColor = 255,255,255
HighlightStyle = 2

All of the columns have these settings:

BorderStyle = 0
Margin = 0
ReadOnly = .F.
ForeColor = 0,0,0
BackColor = 255,255,255
SelectedForeColor = 255,255,255
SelectedBackColor = 49,106,197
Name = "Text1"

For a strange reason, if I don't set the Text1.SelectedBackColor = 49,106,197 programmatically, it won't show that color. I wonder whether my scx is corrupted or not.

Thank you for any help.

 
What color depth is the system set to? (8, 16, 24, 32 bits?) Some video drivers don't support all "colors" in all modes. Some monitors have trouble with some colors.

Have you tried this code on a machine with different hardware?

Rick
 
Hi Rick,

I don't think it is a video driver issue since setting the Text1.SelectedBackColor = 49,106,197 programmatically will work.

Thank you for your help.
 
Have you tried:
Code:
Text1.SelectedBackColor = RGB(49,106,197)
Rick
 
Hi Rick,

I actually have the coding Text1.SelectedBackColor = RGB(49,106,197) not Text1.SelectedBackColor = 49,106,197 to workaround this issue currently. But I believe I should not need to do this programmatically for every column text control.

Thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top