Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I changing entitle active row backcolor in grid?
Message
De
22/12/1999 11:13:00
 
 
À
22/12/1999 06:56:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00307196
Message ID:
00307340
Vues:
24
Add a property to the grid class called nRecNo.

Put this in the grid class's init to highlight the current row in cyan.

This.nRecNo = RECNO( This.RecordSource )
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( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )

and this in the AFterRowColChange:
WITH This
  .nRecNo = RECNO( .RecordSource )
  .Refresh()
ENDWITH
Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform