Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing forecolor of a GRID selected column
Message
From
03/03/2008 15:49:58
 
 
To
03/03/2008 15:39:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01298239
Message ID:
01298249
Views:
39
Hi Cetin,

I try the following in the ...HitsGrid.AfterRowColChange:
Thisform.PF1.SearchPage.HitsGrid.Column1.Text1.SelectedForeColor  ;
 = IIF(HitsCursor.HighLight = 'H', RGB(0,0,255),  ;
 	   IIF(HitsCursor.HighLight = 'G', RGB(0,196,0), RGB(255,255,255)))
and I always get black (default) as the forecolor.

Can you see what my problem is?

Thanks


>>I have a Grid that is a single-column, designed to look a lot like a Listbox (except that I found that using the RecordMark was helpful.
>>
>>In that Grid I use SetAll to adjust the DynamicBackColor and DynamicForeColor of various lines depending on what they contain.
>>
>>Works nicely except for the selected cell, which ends up with a blue border line (that's OK by me), a white background (OK for me too) but always a black ForeColor.
>>I need the Forecolor to be set the same as it is before selection.
>>
>>I've used the AfterRowColChange() event, trying to set the selected item's forecolor based on the content (the content is described as a second field of the Grid's RecordSource and I interrogate it in my attempts.
>>
>>As best I can tell the display is being done from Column1 (i.e. not Text1 under Column1).
>>
>>Can I accomplish what I need to do?
>>
>>Thanks
>
>Hi Jim,
>Set textbox' selectedForecolor/backcolor.
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform