fbg13
fbg13

Reputation: 151

wxwidgets detect mouse click on another window

Is it possible to detect a double click on another window in wxwidgets?

In my quest to switch to linux I wanna build a program that reacts to double click on the desktop and the file manager and displays a menu.

Same as listary does on Windows.

Is this something that can be done with wxwidgets (preferably wxpython) under linux? What about on Windows?

Upvotes: 0

Views: 293

Answers (2)

VZ.
VZ.

Reputation: 22678

You can't receive mouse clicks, or any other events, for windows of another process unless you capture the mouse (and never release it, which would be a bad idea).

Upvotes: 2

Igor
Igor

Reputation: 6245

You can try to use FindWindow() and then Bind() the event handler.

Upvotes: -1

Related Questions