User forums > General (but related to Code::Blocks)

Strange cursor position with wx3.0.2 (scintilla)

<< < (6/7) > >>

ollydbg:
The bug also happens inside the wx trunk's stc control, I reported a detailed message here in wx-user maillist wxStyledTextCtrl: SetStatusText() function call destroys the brace highlight feature under Windows - Google Groups, so that they can help.  :)

ollydbg:

--- Quote from: ollydbg on December 27, 2015, 10:20:56 pm ---The bug also happens inside the wx trunk's stc control, I reported a detailed message here in wx-user maillist wxStyledTextCtrl: SetStatusText() function call destroys the brace highlight feature under Windows - Google Groups, so that they can help.  :)

--- End quote ---
Thanks Eran, the author of CodeLite IDE give a solution to this issue, great! See: https://groups.google.com/d/msg/wx-users/CewSBr6J5xk/KIkZiYAzBgAJ

ollydbg:
The following patch fix the issue!


--- Code: --- src/src/main.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/src/main.cpp b/src/src/main.cpp
index d94083d..8b6f848 100644
--- a/src/src/main.cpp
+++ b/src/src/main.cpp
@@ -4240,7 +4240,15 @@ void MainFrame::OnEditorUpdateUI(CodeBlocksEvent& event)
     }
 
     if (Manager::Get()->GetEditorManager() && event.GetEditor() == Manager::Get()->GetEditorManager()->GetActiveEditor())
-        DoUpdateStatusBar();
+    {
+        #if wxCHECK_VERSION(2,9,5)
+            // try to avoid an issue when set status bar inside the editor update ui event breaks
+            // the brace high light, see: http://forums.codeblocks.org/index.php/topic,20795.0.html
+            CallAfter(&MainFrame::DoUpdateStatusBar);
+        #else
+            DoUpdateStatusBar();
+        #endif
+    }
 
     event.Skip();
 }

--- End code ---

headkase:
Right bleepin' on.  ;)  I await it being pushed to SVN and then I will build wxWidgets 3.0.2 and C::B wx30_64.  Finally, 64-bit.  That's all I want - is it too much to ask!? ;)

oBFusCATed:
There are many more problems in wx3.0 builds that needs to be fixed.
At the moment it is best to stick to the wx2.8 builds.

wx3.0 builds are for people that are not afraid of crashes/asserts/bugs and they're willing to report them.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version