Hi folks,
How I can make following customization: I want to set appropriate color for different cells depending on some condition, i.e. if I done something in some day in the past this day painted with one color and for the thing I will done in future this day will painted with other color, some sort of planning calendar. Maybe I need use other widget not wxCalendarCtrl?
Thanks in advance!
PS. Thank for wxPython and this list!
Hi Basil,
Use the Calendar control not the CalendarCtrl
Take a look in the demo to see how you can customize it.
what you want to do is dome using something like :
self.calend.AddSelect([4, 11], ‘BLUE’, ‘RED’)
this will select the 4 and 11 days with blue foreground and red background
···
On 7/20/06, Basil Shubin <bashu@yandex.ru > wrote:
Hi folks,
How I can make following customization: I want to set appropriate color
for different cells depending on some condition, i.e. if I done
something in some day in the past this day painted with one color and
for the thing I will done in future this day will painted with other
color, some sort of planning calendar. Maybe I need use other widget not
wxCalendarCtrl?
Thanks in advance!
PS. Thank for wxPython and this list!
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
Peter Damoc
Lead developer for
Inamed CAIS Planning System
http://www.cms.ro/cais/
Basil Shubin wrote:
Hi folks,
How I can make following customization: I want to set appropriate color for different cells depending on some condition, i.e. if I done something in some day in the past this day painted with one color and for the thing I will done in future this day will painted with other color, some sort of planning calendar. Maybe I need use other widget not wxCalendarCtrl?
I've successfully set both the foreground and background colors of cells in a CalendarCtrl using the SetAttr method with an appropriate instance of CalendarDateAttr.
···
--
Don Dwiggins
Advanced Publishing Technology