Home > Archive > Programming with dBASE > April 2005 > Re: different colors for different rows in a grid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: different colors for different rows in a grid
Ken Mayer [dBVIPS]

2005-04-06, 8:01 pm

Jean-Pierre Martel wrote:
> In article <MPG. 1c9cd54e208fdf729896
f9@news.dbase.com>, nospam@nospam.com
> says...
>
>
>
> Actually that function can made more simple.
>
> Function EditorControl_before
CellPaint
> if type("this.nRow") == "U"
> this.nRow = 0
> endif
> if this.nRow = 0
> this.colorNormal = "black/LightGrey"
> endif
> this.nRow = iif(this.nRow=0, 1, 0)
> return


If you get a chance to play with this some more, JP, watch what happens
if you are in the first column and moving down, you end up on a white
row, then move to the next column. When you move up/down you end up with
the second column being off-set color-wise. (Step-by-step:
Down arrow to row 6
Right arrow to column2
Up arrow
watch what happens to colors ...)

I haven't found a way around it, but this is not exactly optimal, IMO
.... I tried playing with the concepts and haven't found anything that
worked.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com