Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid row colors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00531022
Message ID:
00531507
Vues:
9
>David, where do you apply this code?,
>
>I've used a function like this:
>
>
* this method provides the colored cells for the grdStages
>* they match the colors of the pages from the stack ticket
>
>lparameter pnRecno
>
>do case
>   case ( pnRecno = 1 )            && Yard
>      return rgb( 255, 255, 255 )
>   case ( pnRecno = 2 )            && Pre Dryer
>      return rgb( 255, 255, 0 )
>   case ( pnRecno = 3 )            && Kiln
>      return rgb( 255, 128, 255 )
>   case ( pnRecno = 4 )            && Cooling Shed
>      return rgb( 255, 128, 0 )
>   case ( pnRecno = 5 )            && Plant
>      return rgb( 255, 255, 164 )
>   otherwise
>      return rgb( 192, 192, 192 )
>endcase
>
>with a column.DynamicBackColor set to:
>
>
thisform.StageColor(recno("stackstages"))
>
>It works like a charm.
>
>>I think I have seen here somewhere about making alternate rows of a grid a different color. This is what I am trying to do. I know there is a column property to do this for columns, but what about rows?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform