Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
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

 
Read Message
Read Message
Read Message
Previous Topic: Global namespace object's properties
Next Topic: Questions about CodeEditor
Goto Forum:
  


Current Time: Thu Apr 25 23:33:27 CEST 2024

Total time taken to generate the page: 4.94086 seconds