Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting DynamicForeColor to a container class
Message
De
25/04/2000 10:15:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Setting DynamicForeColor to a container class
Divers
Thread ID:
00363130
Message ID:
00363130
Vues:
48
I have a grid that is NOT using the standard textbox under the
column. Instead, I have a container class that contains
two stacked textboxes. The top box shows the amount while the bottom
text box shows the percentage.

All this works fine but now I'd like to highlight the row in
yellow if a percentage is > 35 and in red if greater than 50.

The code below works fine when I use the default textbox that
comes with the column of a grid. However, it does not work when
the container is the currentcontrol of the column. Since I have
two textboxes for each column, I set the controlsource not at the
column but at the textbox (inside the container) level.

This.grddetails.SetAll("dynamicforecolor" , ;
"IIF(c_diltn.diltn_pct > 35 ,;
RGB(255,255,255), IIF(c_diltn.diltn_pct > 50 , ;
RGB(0,0,0), RGB(0,0,0)))", "Column")

Any ideas on how to make the row highlight when using the container class as the currentcontrol of a column?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform