Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxWidgets 3.1.2 Released
Miguel Gimenez:
--- Quote ---If you set a breakpoint in PlatWX.cpp line 1883, you will see the window get destroyed when you hit the "#", later you will get the crash because wid is zero.
--- End quote ---
As I interpret this, when the autocomplete window is shown the editor loses focus and then the OnKillFocus event is fired, killing the autocomplete window. May be this window claims focus in wx312 while it didn't in wx311.
ollydbg:
--- Quote from: Miguel Gimenez on December 14, 2018, 02:04:04 pm ---
--- Quote ---If you set a breakpoint in PlatWX.cpp line 1883, you will see the window get destroyed when you hit the "#", later you will get the crash because wid is zero.
--- End quote ---
As I interpret this, when the autocomplete window is shown the editor loses focus and then the OnKillFocus event is fired, killing the autocomplete window. May be this window claims focus in wx312 while it didn't in wx311.
--- End quote ---
Yes, I agree with you. I think there are some code in PlatWX.cpp, such as listbox, when get focus event, it just reset the focus to its parent window, it looks like this refocus does not happen in cb build against wx3.1.2.
Miguel Gimenez:
I can't test until monday, but it can be related to this wxWidgets commit:
https://github.com/wxWidgets/wxWidgets/commit/79a37a2a65d8bde315bcd863838f21c72912840a
oBFusCATed:
Can someone reproduce this in the stc sample of wxwidgets and report this on the wx devs?
I cannot reproduce this on linux.
Miguel Gimenez:
--- Quote ---Can someone reproduce this in the stc sample of wxwidgets
--- End quote ---
I have just tested the stc sample; it has code highlighting but no code completion, so there is no popup window when typing. The popup menu associated to the right button works OK.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version