I'm using wx.calendar.CalendarCtrl in a wx.Dialog.
It starts at the current day, which is perfect.
Now if a increase or decrease the month,
the day number (20 is this case) still stays "highlighted/selected".
I can detect the change of month,
but is it possible to turn of the selection of the day number.
It makes it much clearer that another month is selected.
I'm using wx.calendar.CalendarCtrl in a wx.Dialog.
It starts at the current day, which is perfect.
Now if a increase or decrease the month,
the day number (20 is this case) still stays "highlighted/selected".
I can detect the change of month,
but is it possible to turn of the selection of the day number.
It makes it much clearer that another month is selected.
thanks,
Stef
I suspect not as that would set the date to an invalid value, you
could try setting the day to the first of the month possibly.
On Wed, May 18, 2011 at 6:59 PM, Stef Mientki <stef.mientki@gmail.com> wrote:
hello,
I'm using wx.calendar.CalendarCtrl in a wx.Dialog.
It starts at the current day, which is perfect.
Now if a increase or decrease the month,
the day number (20 is this case) still stays "highlighted/selected".
I can detect the change of month,
but is it possible to turn of the selection of the day number.
It makes it much clearer that another month is selected.
On Wed, May 18, 2011 at 6:59 PM, Stef Mientki <stef.mientki@gmail.com> wrote:
hello,
I'm using wx.calendar.CalendarCtrl in a wx.Dialog.
It starts at the current day, which is perfect.
Now if a increase or decrease the month,
the day number (20 is this case) still stays "highlighted/selected".
I can detect the change of month,
but is it possible to turn of the selection of the day number.
It makes it much clearer that another month is selected.
I think you can catch the EVT_CALENDAR_MONTH event, and, borrowing
from the approach in the page below, in the handler do: