Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicBackColor Expression
Message
 
 
À
28/10/2008 13:47:00
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01357767
Message ID:
01357770
Vues:
9
>I have another field in the cursor that I need to add into the mix. It's to a more detailed level and I want to be able to darken the colors for those rows based on the other field value. In the code below, I'm using light blue, light green and light red. If the SUBSCRIBER records have a value in the other field, then I want to have them be alittle darker. Do I have to keep nesting stuff like that into this one expression, or is there another way to handle that?
>
>	TEXT TO lcDynBackColor NOSHOW PRETEXT 15
>	     ICASE(UPPER(ALLTRIM(WorkListXMLCursor.GroupHeading)) == [RECEIVER]                     ,  RGB(192, 241, 190),
>	           INLIST(UPPER(ALLTRIM(WorkListXMLCursor.GroupHeading)), [SUBSCRIBER], [DEPENDENT]),  RGB(211, 210, 240),
>	           RGB(249, 223, 223))
>	ENDTEXT
>
I would say, go for the form or grid method called SetColor()

Code it like
local lnColor

do case
    case myCondition1
          lnColor = some color
   ...
endcase

return lnColor
Or see Re: Changing Grid HighlightBackColor dynamically Thread #1253689
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