User forums > Using Code::Blocks
Does doxygen documentation window and parenthesis completion work for you?
Miguel Gimenez:
If you edit src/common/popupcmn.cpp in wxMaster and change
--- Code: ---bool wxPopupWindowBase::Create(wxWindow* WXUNUSED(parent), int WXUNUSED(flags))
{
// By default, block event propagation at this window as it usually
// doesn't make sense. This notably prevents wxScrolledWindow from trying
// to scroll popup contents into view if a popup is shown from it but
// extends beyond its window boundaries.
SetExtraStyle(GetExtraStyle() | wxWS_EX_BLOCK_EVENTS);
return true;
}
--- End code ---
to
--- Code: ---bool wxPopupWindowBase::Create(wxWindow* WXUNUSED(parent), int WXUNUSED(flags))
{
return true;
}
--- End code ---
then documentation popup and parentheses completion work again.
This change was made by Vadz four days after the one that made C::B crash, and wasn't reverted by NewPagodi when he restored wxPopupWindow original behaviour.
https://github.com/wxWidgets/wxWidgets/commit/9562ca2b70c5421a9f3e94d6ea818efad0ac265b#diff-ae8d87556bfe1b32c101c69c2fb1cec4
BlueHazzard:
So this is a wxWidgets bug?
NewPagodi introduced new popup code for windows.
This introduced a bug https://trac.wxwidgets.org/ticket/18243
Vadz fixed it with this culprit code,
NewPagodi reverted, but missed the change from vadz?
so this should be reported to wxWidgets?
Edit: How did you even found this :)
Miguel Gimenez:
20/10/2018, Vadz changed the popup code. This change made C::B crash when showing a popup
https://github.com/wxWidgets/wxWidgets/commit/56c419116838045f23f046112960d4e42f98f80d
24/10/2018, Vadz blocked event transmission to parents. No apparent side effect, as C::B crashed because of previous commit, but this commit is the real culprit.
https://github.com/wxWidgets/wxWidgets/commit/9562ca2b70c5421a9f3e94d6ea818efad0ac265b
28/01/2019, NewPagodi restores behaviour prior to 20/10/2018 but doesn't revert the 24/10/2018 commit, possibly because he overlooked it. Now C::B does not crash, but documentation popup and parentheses addition fail.
https://github.com/wxWidgets/wxWidgets/commit/07f64c3b75c79b79b46a7e8ac8db585a618c57da
IMHO this should be reported to wxWidgets, unless somebody finds a workaround.
--- Quote ---How did you even found this
--- End quote ---
The main problem was C::B crashiing between the first and the third commit, so I couldn't use bisection.
I made a diff between the code after the third commit and the code just before the first commit, and then removed all changes not related to popups. As you said it looked like an event problem, so a visual inspection led me to the code blocking event transmission (see line 230 in the attached file)
Miguel Gimenez:
I made it work, patch posted in ticket 1001 (https://sourceforge.net/p/codeblocks/tickets/1001/)
Navigation
[0] Message Index
[*] Previous page
Go to full version