Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor help with columns.
Message
 
 
À
27/09/2001 14:24:07
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00561583
Message ID:
00561608
Vues:
30
This message has been marked as the solution to the initial question of the thread.
>I have a routine for a grid that highlights the a particular column entirely with one color. It also highlights the current row. The problem is, the row highlight "goes under" the column highlight. I need to reverse that and because of the IIF in the following lines, I can't. I need help figuring out how to change these lines.
>
>
>curRowRec=recno()
>this.SetAll("DynamicBackColor","IIF(recno()=curRowRec,RGB(0,128,255),RGB(255,255,255))","Column")
>thisform.grid1.columns(tagno()+1).DynamicBackColor="RGB(0,255,0)"
>
>Thanks
Add IIF to the current collumn DynamicBackColor also
thisform.grid1.columns(tagno()+1).DynamicBackColor= ;
       "IIF(recno()=curRowRec,RGB(0,128,255),RGB(0,255,0))"
I would also suggest that you make curRowRec a property of your grid base class or form. Otherwise it could get out of scope.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform