How to disable the wxWidgets Information dialog? Topic is solved

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.
Post Reply
m.a.k.
Earned a small fee
Earned a small fee
Posts: 15
Joined: Fri Jul 04, 2008 8:13 pm

How to disable the wxWidgets Information dialog?

Post by m.a.k. »

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:

Image

Is there any way to disable that dialog?

Regards,
Markus
User avatar
doublemax
Moderator
Moderator
Posts: 19161
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

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
Earned a small fee
Posts: 15
Joined: Fri Jul 04, 2008 8:13 pm

Post by m.a.k. »

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
Experienced Solver
Posts: 96
Joined: Fri Dec 14, 2007 2:29 am
Location: Xuzhou, China

Post by morya »

What if you derive all the classes and rewrite that special event handle..?

That would be a big project..
morya
Experienced Solver
Experienced Solver
Posts: 96
Joined: Fri Dec 14, 2007 2:29 am
Location: Xuzhou, China

Post by morya »

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.
Post Reply