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++ » A small issue with CodeEditor
Re: A small issue with CodeEditor [message #46062 is a reply to message #46056] Fri, 26 February 2016 14:06 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1400
Registered: September 2007
Senior Contributor
OK, this is very weird. Te out of the box EditorBar positioning is not the way it appears in TheIDE and based on the code I don't know how it could.

But here is what I found to work really good:
if(line_numbers && i < editor->GetLineCount()) {
			String n = AsString((i + 1) % 1000000);
			Font fnt = editor->GetFont();
			Size tsz = GetTextSize(n, fnt);
			w.DrawText(sz.cx + 1 + CodeEditorImg::Breakpoint().GetWidth() - Zx(4 + 12) - tsz.cx - annotations, y + (fy - tsz.cy) / 2, n, fnt, Brown);
		}


The DrawText line is the only one I changed.

I still have this weird empty line at the end of the CodeEditor, like in the attached image.

index.php?t=getfile&id=4948&private=0
  • Attachment: ce.png
    (Size: 56.82KB, Downloaded 306 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FIXED] the menu Assist/THISBACKs.. (Alt + T) does not work
Next Topic: Crash TheIde when #include line is empty
Goto Forum:
  


Current Time: Sun Apr 05 18:45:33 CEST 2020

Total time taken to generate the page: 0.01104 seconds