Delphi 5, WPTools v5.39.
In our app, user can type or dictate text or copy text from other parts of app. Sometimes, the text is not indented properly or user wants to changed indentation. Thus user needs ability to selected certain lines (e.g., 10 lines in middle of a page) and increase or decrease INDENT for EACH LINE WITH SPACES (e.g., by 4 SPACES). Please note that I am NOT interested in indentation using paragraph indent.
This (requested) functionality is EXACTLY like Dephi IDE where user can select a block of text and press Control-K-I to increase indent or Control-K-U to decrease indent (my IDE editor is set to 4 spaces).
(If we indent with PARAGRAPH INDENT, indentation is lost when text is saved as plain text in DB field. Therefore, we need to indent each line with spaces).
Related issue: I also need to limit length of each line to 72 char or less due to legacy storage and display reasons. Text is stored in DB as plain text with max line length limited to 72 char. When text is read back from DB, any line that was longer than 72 char creates ugly display because any characters after 72nd character appear as a "new" line with no indent.
Obviously, when we add spaces to indent lines, some lines will become longer than desired width of 72 char. How do I handle issue?
I have searched forums and did not find any solution. I am returning to WPTools after a few years so a clear reply with some example code is highly appreciated.
Thank you in advance.
JayM