I am trying to create a custom grid cell editor (wxGridCellEditor) using the CalendarCtrl. I'm running into a bit of a snag because the calendar control's background is transparent. This makes it look a bit strange, as you can see the table's text in the background of the calendar. Is there any way to force the calendar control to have an opaque background? In any other circumstance I could just drop it into a frame, however afaik the wxGridCellEditor has to be a wxControl and not a wxWindow.
Hello all,
I am trying to create a custom grid cell editor (wxGridCellEditor) using the CalendarCtrl. I'm running into a bit of a snag because the calendar control's background is transparent. This makes it look a bit strange, as you can see the table's text in the background of the calendar. Is there any way to force the calendar control to have an opaque background? In any other circumstance I could just drop it into a frame, however afaik the wxGridCellEditor has to be a wxControl and not a wxWindow.
wxCalendarCtrl is kind of an odd duck. It is a wxControl but it has a couple additional widgets that it places next to it on the same parent. One way to get around the see through is to put another wxControl under it. IOW, derive a class from wxControl and put a wxCalendarCtrl on that.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!