Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic column colors
Message
From
16/08/2016 04:26:08
 
 
To
15/08/2016 18:28:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01639490
Message ID:
01639501
Views:
133
This message has been marked as the solution to the initial question of the thread.
>As per the attached pic, I use DynamicForeColor in the Init of a grid to set the forecolor of rows depending on table data.
>
>My question is how do I get the highlighted grid color to show the same forecolor as it was before the row was highlighted?
>
>Many thanks for the help!

In the AfterRowColChange() event code of the grid, include this statement:
This.HighlightForeColor = EVALUATE(This.Columns[1].DynamicForeColor)
and fire AfterRowColChange() at an early stage (Init(), GotFocus(), where it will be more appropriate considering the setup of the grid), to set the colors for the first time.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform