Re: MonthCalendar win32lib control
- Posted by CChris Jul 18, 2008
- 1010 views
Hi,
I'm hoping for some help. I'd like to turn off the "today circle" in the MonthCalendar display. I've found some Microsoft documentation that suggests that this might be optional as of v4.7 (http://msdn.microsoft.com/en-us/library/bb760919(VS.85).aspx refers to control style MCS_NOTODAYCIRCLE). I've not found any reference to this in the win32lib documentation. Is it possible for me to turn off the today circle? I'm using Windows XP SP2.
Cheers, Mark
Did you check the win32lib wiki at euwiki.ayo.biz? I know, there are two euwiki's... There is a direct link in the front matter for the documentation of 0.70.4a.
At any rate, you can simply define
constant MCS_NOTODAYCIRCLE = 8
and add this to the style flags at creation time. And play around with addStyle(), removeStyle() or controlStyle() to see whether the setting can be toggled on the fly. I'd expect so.If nothing moves, repainting may help.
The flag is not referenced because the constant list has been minimal by design. If no one asked for it and it is not ground basic, it is not defined there. Will add on next release. The complete set of Windows constants is dauntingly large.
CChris