How to capture WM_NCLBUTTONDBLCLK event with wxPython? - windows

I'm using wxPython. I want to detect mouse events on the caption bar. I noticed that there is a event called WM_NCMOUSEHOVER under windows. But I cannot find corresponding event in wxPython. Here is the question, how can I capture those non-client events with wxPython?

I can't find a way to get mouse events from the frame title bar. The closest I got was EVT_MOTION. However, you might be able to use a wx.Timer in combination with wx.GetMousePosition(). See Capturing mouse events outside wx.Frame in Python for more info.

Related

Single-touch screen interfering with mouse main cursor

I have a touch screen that is handled as a mouse in windows.
I'm trying to figure out how can retrieve the position of my click in the signle-touch screen without making the main cursor moves. Something like this thread but for windows.
I can retrieve the position of the click in the touchscreen using GetRawInputData and now i want to capture the event or block it in order to not mess up with the main cursor.
Any help ?
When touch messages are not handled they are translated into standard mouse messages.
So handle all the touch messages and the mouse cursor should not be influenced.

FireMonkey - how to capture TScrollBar mouse events?

I'm trying to capture mouse events on a TScrollBar. In design time, I created a handler for each mouse event, on the Events tab of the Object Inspector. At runtime, the TScrollBar does not fire the mouse events, therefore the handlers are not executed. For instance, when the mouse pointer enters the TScrollBar, the OnMouseEvent never triggers the associated ScrollBarMouseEnter. I'm working with FireMonkey, Berlin 10.1 Update 2, Win32 platform. Any help would be appreciated.

Distinguish Magic mouse/Trackpad scroll event

Inside an Event Tap I need to distinguish the scroll event that comes from a magic mouse to that which comes from a TrackPad.
Does anyone have a solution to this problem? Is there a way to get the product ID of the generating device from the CGEvent? Can IOkit help me here?

xlib / motif : how can I tell when the window has been redrawn in response to a property change?

Working on a sort of Motif GUI design tool. After I programmatically change a property, add/remove widgets, move widgets around, etc, I capture a screenshot of the Motif window showing the current window state. FYI, I'm using cairo 2d to capture the Xlib surface of the window as a png.
Mostly this works fine but sometimes my window capture happens before the UI update has completed. In particular I've noticed this occasionally when changing a widget's font or changing the pixmap on a graphical label.
I want to wait until the window has finished drawing the new state before capturing the surface.
How can I do that reliably? It looks like Xlib exposure events occur prior to redraw. And I see there's a PropertyChange event - but the documentation doesn't say anything about when it happens in relation to drawing.

Carbon C Event Handlers for movement of scroll bar of window

I am trying to find how can we catch the events of that whenever a scroll bar is moved. Scroll bar can also be moved programmatic-ally so, mouse scroll events wont work here.
I am using Carbon, Mac
Thanks,
Rahul
I would try kEventControlIndicatorMoved and/or kEventControlValueFieldChanged.

Resources