Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » [solved] Next CodeEditor misery: selecting highlighted text colors does not work
[solved] Next CodeEditor misery: selecting highlighted text colors does not work [message #46443] |
Wed, 11 May 2016 13:09  |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
I have an IDE inspired syntax highlight colors dialog and I'm using a straightforward colors table of ints to store the index of the colors I want to edit.
I'm using basically the same code from ide/Setup.cpp:
for(int i = 0; i < colors.GetCount(); i++) {
int j = colors[i];
editor.SetHlStyle(j, hlt.hlstyle.Get(i, 1), hlt.hlstyle.Get(i, 2),
hlt.hlstyle.Get(i, 3), hlt.hlstyle.Get(i, 4));
//if (i == 2 || i == 3)
// editor.SetColor(i, hlt.hlstyle.Get(i, 1));
}
All colors work except for index 2 and 3, which are the selected text ink and paper. Even setting them directly with a hardcoded value does not work for me and they are always white on blue.
Uncommenting the two commented lines as a hack works, but this causes the lower portion of CodeEditor, the region under the text, to be highlighted as selected.
I'll continue to investigate this very strange issue.
PS: I found a bunch of bugs with using underlined styles with highlighting. I'll see if I can find some fixes.
[Updated on: Tue, 03 January 2017 11:50] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:35:10 CEST 2025
Total time taken to generate the page: 0.00589 seconds
|