Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Grid
Divers
Thread ID:
00310213
Message ID:
00310275
Vues:
15
>Hi Randy,
>
>You can use DYNAMICBACKCOLOR and DYNAMICFORECOLOR.
>Use this code at the Init event of your form:
>
>Public MyRecNo
>Thisform.MyGrid.SetAll("DynamicBackColor", "IIF(RECNO( )=MyRecNo, RGB(0,0,128), RGB(255,255,255))", "Column") && Painting backcolor: Blue
>Thisform.MyGrid.SetAll("DynamicForeColor", "IIF(RECNO( )=MyRecNo, RGB(255, 255, 255), RGB(0,0,0))", "Column") && Painting letters: white

Ricardo,

Public variables are almost never a good idea. Make a grid class that has a property called CurRecNo and use that for the record nmumber sotrage. An object should be self contained, that is the grid should not be looking at a variable created by a form to find out what it needs to know to configure itself. The grid should look at itself to find out what it needs to know.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform