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 » Community » Newbie corner » Configuring CodeEditor Package
Re: Configuring CodeEditor Package [message #61876 is a reply to message #61875] Wed, 03 December 2025 08:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14277
Registered: November 2005
Ultimate Member
cayeveh wrote on Tue, 02 December 2025 22:08
How do I configure line numbers positioning in the CodeEditor package?
Currently it seems to be left aligned, i want it to be right aligned?


I have this basic code -
include <CtrlLib/CtrlLib.h>  
#include <CodeEditor/CodeEditor.h>

using namespace Upp;  
  /*
INITBLOCK {  
    Ctrl::SetDarkThemeEnabled(false);    
    Ctrl::SetSkin(ChStdSkin);         
}
*/


class Notepad : public TopWindow {  
    CodeEditor editor;  
      
public:  
    Notepad() {  
        Title("Simple Notepad");  
        Add(editor.SizePos());  
          
        editor.LineNumbers(true);  
          
    }  
};  
  
GUI_APP_MAIN  
{  
    Notepad().Run();  
}


---------
Also, i am unable to find documentation for the CodeEditor package.


Yeah, well, CodeEditor is practically part of TheIDE codebase (meaning it is pretty much specialised for that role) and documentation is lacking here and there in U++, that is sad fact.

I guess you have 2 options: Develop your own CodeEditor or propose a change (ideall a patch) to align numbers right.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Direct printing to a specific printer
Next Topic: New system of feature requests on our forums- please read and use!
Goto Forum:
  


Current Time: Wed Dec 03 12:13:08 CET 2025

Total time taken to generate the page: 0.07851 seconds