wxStyledTextCtrl styling issues
Posted: Mon Dec 02, 2013 3:31 pm
Looking for advice, not sure how to proceed on this problem
Windows 8 / Codelite 5.3 / wxWidgets 2.9.5
I'm seeing some odd styling when using the wxStyledTextCtrl class, and I don't recall seeing this when using wxWidgets 2.9.4 (although haven't tested this)
It seems easy to recreate ...
1. Create a codelite gui project, wxFrame using wxCrafter
2. Add a wxStyledTextCtrl object
3. Add lines similar to the following to MainFrame.cpp constructor
m_stc13->StyleClearAll();
m_stc13->SetLexer(wxSTC_LEX_CPP);
m_stc13->LoadFile("E:\\Dev\\wxWidgets-2.9.5-full\\samples\\access\\accesstest.cpp");
(The file in the loadfile call needs to contain #ifdef statements)
4. Compile, link and run the program
5. The appearance of statements inside the #ifdef preprocessor block contains odd characters as in the first example (Image1.png)
The appearance improves if the first '#' character is removed as in Image2.png
Any advice on how to make the appearance look better?
Thanks, Colin
Windows 8 / Codelite 5.3 / wxWidgets 2.9.5
I'm seeing some odd styling when using the wxStyledTextCtrl class, and I don't recall seeing this when using wxWidgets 2.9.4 (although haven't tested this)
It seems easy to recreate ...
1. Create a codelite gui project, wxFrame using wxCrafter
2. Add a wxStyledTextCtrl object
3. Add lines similar to the following to MainFrame.cpp constructor
m_stc13->StyleClearAll();
m_stc13->SetLexer(wxSTC_LEX_CPP);
m_stc13->LoadFile("E:\\Dev\\wxWidgets-2.9.5-full\\samples\\access\\accesstest.cpp");
(The file in the loadfile call needs to contain #ifdef statements)
4. Compile, link and run the program
5. The appearance of statements inside the #ifdef preprocessor block contains odd characters as in the first example (Image1.png)
The appearance improves if the first '#' character is removed as in Image2.png
Any advice on how to make the appearance look better?
Thanks, Colin