Make font color light if background color is dark |
Post Reply |
Author | |
DataFlowJoe
Groupie Joined: 30 October 2007 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 14 May 2009 at 10:49am |
Hi guys...
Is it possible to change the font colour of the calendar events so that the text appears lighter if the label background colour is dark.
Ideally I'd like the foreground colour to change to a lighter colour if the background is too dark to support black text.
Thanks in advance
|
|
He is no fool who gives what he cannot keep to gain what he cannot lose. (Jim Elliott)
|
|
DataFlowJoe
Groupie Joined: 30 October 2007 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hi Guys,
I've found out from another forum how to get the inverse color to enable contrast with darker backgrounds ... in VB it's done using the following code...
Function GetContrastColor(lngParamColor ) As Long
GetContrastColor = Not lngParamColor And &HFFFFFF End Function I now want to implement this but I can't get the BeforeDrawThemeObject event to trigger. I've set it to fire for all flags but it's not getting fired ...
I guess I need to use this event to change the text color to contrast whatever colour the Event background has been set to.
Any help will be greatly appreciated.
Thanks
|
|
He is no fool who gives what he cannot keep to gain what he cannot lose. (Jim Elliott)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |