Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set DynamicBackColor by Group
Message
From
16/12/2006 17:52:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003119
Message ID:
01178314
Views:
17
>Dragan - i'm doing something similar... using...
>
>
>  .dynamicbackcolor="ncolor"
>
>
>I am using memoeditboxes in the grid columns instead of textboxes. Not sure if thats the problem but i dont see the color. I've tried setting the memoeditboxes' BACKSTYLE to TRANSPARENT thinking that would let the assigned color show, but no joy.
>
>The cursor is populated and the nColor1 field is set w/ the code below, and the dynamicbackcolor is assigned using...
>
>
>thisform.grd1.column2.DynamicBackColor = "tmpweek.nColor1"
>
>
>'nColor1' field assignment code....
>
>
>lnretval = rgb(255,255,255)
>DO CASE
>   *--- zero payed
>   CASE lcTotPaid = 0
>      lnretval = rgb(255,255,255)
>   *--- existing balance
>   CASE lcBalance > 0
>      lnretval = rgb(255,255,128)
>   *--- payed in full
>   CASE lcTotCost = lcTotPaid
>      lnretval = rgb(128,255,128)
>ENDCASE
>RETURN lnretval
>
>
>The nColor1 assignment code works and i can browse the table and see the numeric value set by the RGB code above. Any ideas?

None yet - haven't tried this with editboxes. Does this work for other columns where you may have the default textbox? Does the column still have the default textbox or is the editbox the only control in it? What's the setting of .sparse for the column?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform