Scintilla Text Alignment
Posted: Tue Apr 14, 2020 12:24 pm
I can't seem to find the appropriate 'ScintillaSendMessage' to handle text alignment from a 'ReadFile()' to a Scintilla gadget. The text file is displayed in full but, the text alignment is off.
I can display/use '#SCI_SETVIEWWS' and see the dots (space), they match from Notepad/Notepad++ and Vim. I don't believe that it is an issue of font, I've matched that using '#SCI_STYLESETFONT' with what Notepad/Notepad++ and Vim are using to display the text file.
Example text:
INFO 2020-02-05 08:03:30.061 5066 140147193812736 PolicyManager > Set policy refresh task to start at 2020-02-05 08:05:30 with interval of 5 minutes, deviation 0 minutes.
WARN 2020-02-05 08:03:30.067 5066 140147193812736 ClientSchedulerPlugin > RefreshTask: Failed to delete the old task 'CS01': 2147484148, Unknown error
I would like to align the 'INFO' and 'WARN' (column if you will, which is 6 spaces to 5066, 2 spaces to 140147193812736), etc...
Using Consolas Regular on Windows and Monospace on Linux, same issue on both, PB 5.72 x64.
Hopefully, I've explained it well enough to be deciphered as to what I want to accomplish.
Regards,
-M
I can display/use '#SCI_SETVIEWWS' and see the dots (space), they match from Notepad/Notepad++ and Vim. I don't believe that it is an issue of font, I've matched that using '#SCI_STYLESETFONT' with what Notepad/Notepad++ and Vim are using to display the text file.
Example text:
INFO 2020-02-05 08:03:30.061 5066 140147193812736 PolicyManager > Set policy refresh task to start at 2020-02-05 08:05:30 with interval of 5 minutes, deviation 0 minutes.
WARN 2020-02-05 08:03:30.067 5066 140147193812736 ClientSchedulerPlugin > RefreshTask: Failed to delete the old task 'CS01': 2147484148, Unknown error
I would like to align the 'INFO' and 'WARN' (column if you will, which is 6 spaces to 5066, 2 spaces to 140147193812736), etc...
Using Consolas Regular on Windows and Monospace on Linux, same issue on both, PB 5.72 x64.
Hopefully, I've explained it well enough to be deciphered as to what I want to accomplish.
Regards,
-M