Greg Ewing schrieb:
Vernon Cole wrote:
So, Greg, can we anticipate a python_gui flavor for Windows in native mode?
Yes, it looks like there's a reasonable chance of that
happening fairly soon.
There are actually two possible ways it could go. I
have a partial implementation contributed
-Original Message-
From: python-win32-bounces+simon.king=motorola@python.org
[mailto:python-win32-bounces+simon.king=motorola@python.or
g] On Behalf Of Mike Driscoll
Sent: 02 March 2009 14:18
To: Python-Win32 List
Subject: Re: [python-win32] OnCtlColor not working?
[SNIP
[mailto:python-win32-bounces+simon.king=motorola@python.or
g] On Behalf Of Mike Driscoll
Sent: 02 March 2009 14:18
To: Python-Win32 List
Subject: Re: [python-win32] OnCtlColor not working?
[SNIP]
I'm probably being naive, but why don't you just use one of Python
excellent GUI toolkits
Mike Driscoll wrote:
I'm probably being naive, but why don't you just use one of Python
excellent GUI toolkits?
I'm implementing my own cross-platform toolkit, because
I don't like any of the existing ones. See
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
--
Greg
Vernon Cole wrote:
So, Greg, can we anticipate a python_gui flavor for Windows in native mode?
Yes, it looks like there's a reasonable chance of that
happening fairly soon.
There are actually two possible ways it could go. I
have a partial implementation contributed by one of
my users based
Has anyone successfully used the PyCWnd.OnCtlColor
virtual function to change the appearance of a
control?
The program below tries to use it to set the colour
of the text in a PyCButton. My OnCtlColor method gets
called, but it doesn't have any effect on the appearance
of the button.
Also, if I
Roger Upole wrote:
OnCtlColor is expected to return a GDI handle rather than a full
MFC object.
Ah, okay. It does say so, now that I come to look at
the docs carefully enough. It works fine now.
Thanks,
Greg
___
python-win32 mailing list
Well, it *almost* works now... it's okay for all the
button styles except BS_PUSHBUTTON.
My OnCtlColor is still getting called, but the
pushbutton seems to ignore the results. All the other
button styles are okay.
Am I still doing something wrong, or is this a known
limitation of pushbuttons?