If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
m.a.k.
Earned a small fee
Posts: 15 Joined: Fri Jul 04, 2008 8:13 pm
Post
by m.a.k. » Fri May 29, 2009 9:49 am
When I hold down CTRL + ALT and press the middle mouse button over some GUI elements of my wxWidgets application, the following info dialog appears:
Is there any way to disable that dialog?
Regards,
Markus
doublemax
Moderator
Posts: 19161 Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2
Post
by doublemax » Fri May 29, 2009 9:59 am
only by commenting it out in the wx sources.
It's in /wx/src/common/wincmn.cpp, wxWindowBase::OnMiddleClick
Use the source, Luke!
m.a.k.
Earned a small fee
Posts: 15 Joined: Fri Jul 04, 2008 8:13 pm
Post
by m.a.k. » Fri May 29, 2009 10:17 am
doublemax wrote: only by commenting it out in the wx sources.
It's in /wx/src/common/wincmn.cpp, wxWindowBase::OnMiddleClick
Thanks for the quick reply!
I hoped there would be another way than modifying the wxWidgets sources, but that'll do it
morya
Experienced Solver
Posts: 96 Joined: Fri Dec 14, 2007 2:29 am
Location: Xuzhou, China
Post
by morya » Fri May 29, 2009 2:34 pm
What if you derive all the classes and rewrite that special event handle..?
That would be a big project..
morya
Experienced Solver
Posts: 96 Joined: Fri Dec 14, 2007 2:29 am
Location: Xuzhou, China
Post
by morya » Sun May 31, 2009 12:13 pm
I came out with a very bad idea,
you could make a special event filter and plug it to every widget that you want disable the msg box.
You know what kind of event you want to filter.