Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Row Colours in a grid
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00595172
Message ID:
00597329
Vues:
14
>Nadya,
>
>I've the column to change between two colours using
>
>IIF(LEVEL=1,RGB(0,0,255),RGB(128,255,128)
>
>but I want to do for this up to 5 colours based on the field "level" can i use a program to contain the CASE command?
>
>RC
>Bespoke Software System

Recently I switched to idea, showed by Dragan Nedeljkovich, and I like it.

Create a table called LevelGroup with 4 fields:
CodeVal Descript myForeClr I myBackClr I

Fill it with possible Level codes, and color combinations (numbers).

In the Init of your grid put:
this.setall('DynamicForeColor','LevelGroup.myForeClr') && If you want it for all columns

Set relation to LevelGroup. That's it. Works fast too.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform