[wxPython-users] DatePickerCtrl and SetBackgroundColour

A.M. cuberootva at gmail.com
Fri Sep 15 13:17:38 PDT 2006


I want to explain further that I am more interested in setting the
background color of the control (looks like a combo box) that displays
the date string. Not the calendar control itself that's presented when
you click the dropdown arrow. Maybe that is more doable?

On 9/15/06, Robin Dunn <robin at alldunn.com> wrote:
> A.M. wrote:
> > On 9/14/06, Robin Dunn <robin at alldunn.com> wrote:
> >> A.M. wrote:
> >> > I am simply trying to set the background colour on the DatePickerCtrl
> >> > to show validation errors. All other input methods on my Frame accept
> >> > the SetBackgroundColour method but the date control is not. The method
> >> > is available via dir() but I can't figure out what I am doing wrong.
> >> > Is there something I am missing?
> >>
> >> Which platform and version?
> >
> > Sorry I didn't include this before but version 2.6.3.3 and running on
> > Windows XP.
>
> On Windows the date picker is a native control, and for
> SetBackgroundColour a message will be sent to its window handle like for
> any other widget.  So apparently the native control is ignoring the
> message for some reason.
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>




More information about the wxpython-users mailing list