Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make the whole row of the grid to use the same forecolor
Message
 
 
À
04/07/2001 04:03:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00525731
Message ID:
00526929
Vues:
17
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform