Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change BackColor in a grid
Message
De
06/08/2003 09:07:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00817208
Message ID:
00817275
Vues:
20
Hello Gloria.

How can I change the BackColor and ForeColor of row that is selected by clicking the check box?

This sample code assumes that the column with the check box is bound to a field named lSelected in the grid's RecordSource:
*** Set up for highlighting ALL Selected Rows
This.SetAll( 'DynamicForeColor', ;
	'IIF( lSelected, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
	'IIF( lSelected, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform