[python-win32] SetCursor
Brian Parma
execrable at gmail.com
Sat Jul 26 03:24:39 CEST 2008
On Fri, Jul 25, 2008 at 6:13 PM, Tim Roberts <timr at probo.com> wrote:
> Brian Parma wrote:
>
>>
>>
>> I was under the impression that SetCursor sets the mouse cursor
>> 'system-wide', not just for your window. At least that's how it seems to
>> work in this C++ example:
>>
>
> No. It did in Win16, but not in the Win32 systems.
>
>
> For the second part, this example produces it. It uses PyQt4, could that
>> be causing the problem? It changes the Icon on any key press when the
>> window has focus.
>>
>
> Hmmm, I don't know enough about Qt to answer that. It's quite possible
> that Qt is doing its own cursor management, and is not expecting you to call
> the API behind its back.
>
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
Oops, forgot to post the link for the C++ example:
http://www.codeproject.com/KB/dialog/windowfinder.aspx
The way it works is, when you click on the 'target' the mouse cursor
changes, and it is kept that way as long as you keep the mouse button down,
even when you drag the mouse out of the window (that's the point of the
application).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080725/4ce316e6/attachment.htm>
More information about the python-win32
mailing list