User forums > Nightly builds
The 09 December 2017 build (11246) is out.
oBFusCATed:
Yes, it is known problem with wx3.0 based nightlies. It will be fixed sometime in the future. When I don't know. If someone can debug it, then it will be best.
oBFusCATed:
Would it be possible for windows people building wx3.x+64bit builds to test if the patch below resolves the problem with the editor redraw?
--- Code: ---diff --git a/src/src/main.cpp b/src/src/main.cpp
index 0ed4811..4707aa0 100644
--- a/src/src/main.cpp
+++ b/src/src/main.cpp
@@ -4321,7 +4321,15 @@ void MainFrame::OnEditorUpdateUI(CodeBlocksEvent& event)
}
if (Manager::Get()->GetEditorManager() && event.GetEditor() == Manager::Get()->GetEditorManager()->GetActiveEditor())
+ {
+#if defined(__WXMSW__) && wxCHECK_VERSION(3, 0, 0)
+ // Execute the code to update the status bar outside of the paint event for scintilla.
+ // Executing this function directly in the event handler causes redraw problems on Windows.
+ CallAfter(DoUpdateStatusBar);
+#else
DoUpdateStatusBar();
+#endif // defined(__wxMSW__) && wxCHECK_VERSION(3, 0, 0)
+ }
event.Skip();
}
--
--- End code ---
Xaviou:
Hi
--- Quote from: oBFusCATed on January 29, 2018, 09:10:20 pm ---Would it be possible for windows people building wx3.x+64bit builds to test if the patch below resolves the problem with the editor redraw?
--- Code: ---diff --git a/src/src/main.cpp b/src/src/main.cpp
index 0ed4811..4707aa0 100644
--- a/src/src/main.cpp
+++ b/src/src/main.cpp
@@ -4321,7 +4321,15 @@ void MainFrame::OnEditorUpdateUI(CodeBlocksEvent& event)
}
if (Manager::Get()->GetEditorManager() && event.GetEditor() == Manager::Get()->GetEditorManager()->GetActiveEditor())
+ {
+#if defined(__WXMSW__) && wxCHECK_VERSION(3, 0, 0)
+ // Execute the code to update the status bar outside of the paint event for scintilla.
+ // Executing this function directly in the event handler causes redraw problems on Windows.
+ CallAfter(DoUpdateStatusBar);
+#else
DoUpdateStatusBar();
+#endif // defined(__wxMSW__) && wxCHECK_VERSION(3, 0, 0)
+ }
event.Skip();
}
--
--- End code ---
--- End quote ---
Well done : seems to do the job.
If one want to test, I've uploaded the corresponding build to my Google Drive (rev 11278):
* An archive containing the original build
* An archive containing the pathced build
Regards
Xav'
oBFusCATed:
It is not a good job, just a workaround...
Is this 64bit or 32bit you're testing?
Xaviou:
--- Quote from: oBFusCATed on January 30, 2018, 07:06:05 pm ---It is not a good job, just a workaround...
Is this 64bit or 32bit you're testing?
--- End quote ---
I've tested with wxWidgets 3.0.3 - 64 bits built with MinGW-TDM-5.1.0.
And I confirm that that problems I was talking about in this post disappeared.
Regards
Xav'
Navigation
[0] Message Index
[*] Previous page
Go to full version