Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make the whole row of the grid to use the same forecolor
Message
 
 
To
04/07/2001 04:03:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00525731
Message ID:
00526929
Views:
16
>>I've just tried it, but it slows down the grid and make some other visual oddities... So I would slick with my approach.
>
>Nadya,
>I tried with this additions :
>
>
*when
>this.lInGrid = .T.
>set cursor off
>*init
>WITH this
> IF !empty(.RecordSource)
>   .nCurRec = recno(this.RecordSource)
> ENDIF
> .SetDynColors()
> .Setall('SelectOnEntry',.F.)
> .Setall('Sparse',.F.)
>ENDWITH
>*valid
>this.lInGrid = .F.
>set cursor on
Not a bit of slow down nor visual oddities.
>Cetin

Cetin,

When you navigate from record to record in a grid with Sparse=.f., it becomes gray for a moment, then becomes normal again. I noticed this behavior on other grids too. Perhaps, it's unnoticable on faster computers. That's why I prefer my approach with sparse=.t. The problem here, that active cell becomes highlighted first, then the whole row, but it's better (IMHO), than the whole grid becomes gray for a moment.

I made more tests, and noticed, that grid becomes gray for a moment, when I use PageUp/PageDown buttons, so grid should re-draw itself... It doesn't depend on sparse property, though with sparse=.f. it happens on each movement, while with sparse=.t. only when we want to access unvisible at this moment part of the grid.
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