Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forecolor flexibility in grid
Message
De
01/02/1999 10:38:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/02/1999 10:31:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00176326
Message ID:
00182459
Vues:
8
>>I don't kwnow if this can be useful for you, I have a grid with a column (Code),
>>I change dinamically colors if code > 0 then Red, if code >10 then blue, else black
>>
>>My code is similar to this:
>>
>>define class myGrid as Grid
>>colorType = RGB(0,0,0)
>>
>> PROCEDURE colorType_ACCESS && Access method
>> IF CliTel > 10
>> this.pepe = RGB(0,255,0)
>> else
>> if CliTel < 0
>> this.pepe = RGB(255,0,128)
>> else
>> this.pepe = RGB(255,0,255)
>> endif
>> endif
>>
>> RETURN this.pepe
>> ENDPROC
>>
>>
>> PROCEDURE Init
>> THIS.Column1.DynamicForeColor="IIF( 12 > 10 ,eval('this.colorType'),THIS.Column1.ForeColor)"
>
>
>Dear Gaston,
>
>You are BRILLIANT. How did you ever think to use an _access method to set a columns DynamicBackColor. We should call it ----> Dynamically setting a grids column DynamicBackColor.
>
>I actually have used a view to store the color I want every cell to be displayed in. It is fast and sweet. THANKS ever so much. I think your suggestion and my application warrants a TIP to FoxAdvisor. Your name will be in the credits naturally.
>
>Neil
>DaDigiDoc@aol.com
Neil,
Not to disturb you but you CCed this to me so ask my idea too ? I still use VFP5 and I wonder why I would use "access" in 6 when I don't need it. Did you test that your expression was a valid one ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform