Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Colors in my grid
Message
 
 
À
26/06/2000 03:24:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00383640
Message ID:
00384683
Vues:
54
Hi Marcia,

I made it work!!! Add iif inside iif and it works now. Thanks a lot for your help and ideas.

>Hi Nadya.
>
>>> Thanks a lot for your reply. The colors n my grid depend on thisform.EditMode and field value. I put this code in Grid.refresh()
>if thisform.editmode
> set dynamicbackcolor to some value
>else
> set dynamicbackcolor to other value
>endif <<
>
>Something like this in the gri'd init (actually, I generally put stuff like this into the custom SetGrid method of my grid class. SetGrid is always called from the grid's init) should do the trick:
>
>This.SetAll( 'DynamicBackColor', ;
> 'IIF( Thisform.EditMode, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
>
>This assumes that when the editmode changes, you issue a thisform.refresh()
>
>Marcia
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform