So... now finally I did it by myself
I've chosen the Notepad++ layout, just because I think many already know it, and it's also more handy as Code::Blocks current default. You have less to read, so you spend less time to take a look
Also I've removed some spacings, i don't like it when it isn't equal on both ends
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp (revision 6843)
+++ src/src/main.cpp (working copy)
@@ -1699,12 +1699,12 @@
width[num++] = -1; // main field
// width[num++] = 128; // progress bar
- dc.GetTextExtent(_(" WINDOWS-1252 "), &width[num++], &h);
- dc.GetTextExtent(_(" Line 12345, Column 123 "), &width[num++], &h);
- dc.GetTextExtent(_(" Overwrite "), &width[num++], &h);
- dc.GetTextExtent(_(" Modified "), &width[num++], &h);
- dc.GetTextExtent(_(" Read/Write....."), &width[num++], &h);
- dc.GetTextExtent(_(" name_of_profile "), &width[num++], &h);
+ dc.GetTextExtent(_("WINDOWS-1252"), &width[num++], &h);
+ dc.GetTextExtent(_("Ln : 12345 Col : 1234 Sel : 12345"), &width[num++], &h);
+ dc.GetTextExtent(_("Overwrite"), &width[num++], &h);
+ dc.GetTextExtent(_("Modified"), &width[num++], &h);
+ dc.GetTextExtent(_("Read/Write....."), &width[num++], &h);
+ dc.GetTextExtent(_("name_of_profile"), &width[num++], &h);
wxStatusBar* sb = CreateStatusBar(num);
if (sb)
@@ -1736,8 +1736,9 @@
{
int panel = 0;
int pos = ed->GetControl()->GetCurrentPos();
+ long a, b;ed->GetControl()->GetSelection(&a, &b);
wxString msg;
- msg.Printf(_("Line %d, Column %d"), ed->GetControl()->GetCurrentLine() + 1, ed->GetControl()->GetColumn(pos) + 1);
+ msg.Printf(_("Ln : %d Col : %d Sel : %ld"), ed->GetControl()->GetCurrentLine() + 1, ed->GetControl()->GetColumn(pos) + 1, b-a);
SetStatusText(ed->GetFilename(), panel++);
SetStatusText(ed->GetEncodingName(), panel++);
SetStatusText(msg, panel++);