Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Each item in each column with each color
Message
 
 
To
21/01/2003 20:50:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00744102
Message ID:
00744106
Views:
12
Irwan,

Here's a sample, in this case it sets the color based on the recno of the cursor.

In the grid set the Column.DynamicBack color to thisform.rowcolor( recno() )
* thisform.RowColor()

* this method provides the colored cells for the grdStages
* they match the colors of the pages from the stack ticket

lparameter pnRecno

do case
   case ( pnRecno = 1 )            && Yard
      return rgb( 255, 255, 255 )
   case ( pnRecno = 2 )            && Pre Dryer
      return rgb( 255, 255, 0 )
   case ( pnRecno = 3 )            && Kiln
      return rgb( 255, 128, 255 )
   case ( pnRecno = 4 )            && Cooling Shed
      return rgb( 255, 128, 0 )
   case ( pnRecno = 5 )            && Plant
      return rgb( 255, 255, 164 )
   otherwise
      return rgb( 192, 192, 192 )
endcase
>hi all, i need sample code for making diffrent color in a column for diffrent item...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform