Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color in grids
Message
De
12/12/1999 23:25:46
 
 
À
12/12/1999 19:34:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00302523
Message ID:
00302572
Vues:
38
Hi Randy.

>> I would like for the *entire* selected row in a grid to show up in yellow background, while all other rows remain black on white? <<

In the grid's init:
This.SetAll( 'DynamicForeColor', ;
	'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
	'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 255,255,0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
In AfterRowColChange, store RECNO( .RecordSource ) to .nRecNo and refresh the grid.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform