Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting background for columns
Message
From
20/12/2001 08:50:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/12/2001 08:35:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00596702
Message ID:
00596714
Views:
19
>Can anyone tell me what is wrong with the code that I placed in the grid refresh method. I want to reset the column header's background and forecolor
>
>DO CASE
> CASE ALLT(oVar.FilterSetTo) == "PATIENT CDC ID"
> *This.Column4.Header_CdcId.BACKCOLOR = 192,192, 192
> This.Column4.Header_CdcId.FORECOLOR = 0,64,128
> This.Column4.Header_CdcId.FONTBOLD = .T.
>
> ** RESET DOB COLUMN HEADERS TO DEFAULT BLACK FOREGROUND
> *This.Column3.Header_DOB.BACKCOLOR = 192,192, 192
> This.Column3.Header_DOB.FORECOLOR = '0, 0, 0'
> This.Column3.Header_DOB.FONTBOLD = .F.
>
> CASE ALLT(oVar.FilterSetTo) == "DATE OF BIRTH"
> This.Column3.Header_DOB.FORECOLOR = 0, 64, 128
> This.Column3.Header_DOB.FONTBOLD = .T.
>
> ** RESET CDC ID COLUMN HEADERS TO DEFAULT BLACK FOREGROUND
> This.Column4.Header_CdcId.FORECOLOR = 0, 0, 0
> This.Column4.Header_CdcId.FONTBOLD = .F.
>ENDCASE
Jeffrey,

.ForeColor = rgb(0,64,128)

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
Previous
Reply
Map
View

Click here to load this message in the networking platform