ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
Re: [wxpython-users] Mouse events outside of frame
by Phil Mayes other posts by this author
May 30 2009 10:59AM messages near this date
[wxpython-users] Mouse events outside of frame | [wxpython-users] location (position) of tray icon in windows from python
At 03:17 AM 5/30/2009, you wrote:
> I want to process mouse events when on the border of a frame (the part you 
> drag to resize it) but I can't bind an event handler to anything.  To be 
> specific, I want to know whether the left mouse button is up or down when 
> the mouse is over the frame border.  Is this possible?

One approach (untested) would be to capture the mouse 
(wx.Window.CaptureMouse) and release it when/if it leaves the window area 
(so other programs can use it).  Hmm, this would mean that you would not 
know about border actions on re-entry.  Maybe only release the mouse on 
button down.  Or if it moves more than 20 pixels outside the frame.  Good 
luck with this; maybe these meanderings will point you in the right direction.

Phil 

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
David Yan
Phil Mayes

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved