Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight PART of a Row ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01437047
Message ID:
01437064
Views:
40
>>>Hi Tommy,
>>>
>>>I would suggest to take a look at GridHighlighter class in Downloads section here for this purpose.
>>
>>Ok, thanks!
>
>Based on your other reply, can you simply use DynamicBackColor/ForeColor for the columns you want highlighted for the current record?
>
>E.g. grid's Init
>
>this.Column1.DynamicBackColor = "iif(recno() = this.nCurRecord, rgb(...), rgb(...))"
>
>and maintain nCurRecord property for the grid in AfterRowColChange method.

No, what I wanted was this...

W = White R = Red B = Blue Y = Yellow Highlighted Row

Grid below....
Y   Y   Y   Y   Y   Y    Y  
W  W  W  W  W  W  W
W  W  R   R   R   R   R
W  W  W  W  W  W  W
W  W  B   B   B   B   B
W  W  B   B   B   B   B
W  W  W  W  W  W  W
If I move the Highlight down two rows, then I get this...
W  W  W  W  W  W  W 
W  W  W  W  W  W  W
Y   Y   Y   Y   Y   Y   Y
W  W  W  W  W  W  W
W  W  B   B   B   B   B
W  W  B   B   B   B   B
W  W  W  W  W  W  W
Which hides the dynamic color info of row 3....

What I wanted is this for row 3...
W  W  W  W  W  W  W  
W  W  W  W  W  W  W
Y   Y   R   R   R   R   R
W  W  W  W  W  W  W
W  W  B   B   B   B   B
W  W  B   B   B   B   B
W  W  W  W  W  W  W
So we know we are on row 3, but the Red color is dynamic color is left intact.

Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform