Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the forecolor in a Grid.Header
Message
From
18/05/2018 19:11:28
 
 
To
18/05/2018 16:56:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01660127
Message ID:
01660137
Views:
53
Greg,
Thanks! A timesaver.
Wonder what else this setting will effect on my grid.
Regards,
Koen

>I recently encountered this too. The solution is set the Grid.Themes property to .F.. It is strange, I know, but it works.
>I recall seeing it mentioned in a forum somewhere. Perhaps StackOverflow.
>
>>Hi,
>>
>>I don't seem to be able to set the forecolor of a Grid.Header to an other color than the default Black
>>the following code does not execute the Forecolor
>>

>>With This.Column4
>> .Width = m.liColWidth
>> .Header1.FontSize = 12
>> .Header1.FontName = 'Toyama'
>> .Header1.ForeColor = Rgb(255,0,0)
>> .Header1.Caption = 'nolthing'
>>Endwith
>>

>>I cannot see what is wrong here
>>
>>Regards,
>>
>>Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform