OpenOffice Basic: MsgBox using two columns of text
by w1k0 from LinuxQuestions.org on (#5HFVX)
I wrote a macro set for Apache OpenOffice and LibreOffice. Now I am trying to include a message box with a concise help on my macros. The fragment of the current code looks like this:
Code:Sub help
Dim Help as String
Help = Help & " [Ctrl]+[Shift]+[O] encode_soft_Or_hard_spaces " & chr(13)
Help = Help & " [Ctrl]+[Shift]+[H] big_case_cHanger" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[A] remove_tAbulators" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[X] eXchange_double_spaces" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[Z] killparZ" & chr(13) & chr(13)
Help = Help & " [Ctrl]+[Shift]+[Insert] temp" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[PgUp] help" & chr(13) & chr(13)
MsgBox Help, 0, "AOO-macro-4.1 "
End SubThe message box looks like this:
Attachment 36312
The problem is that I formatted the text displayed in proportional font using spaces. As a result, the macro names in the right column are not aligned. I tried hard to find a solution by searching the Internet and various manuals on OpenOffice Basic, but to no avail.
Can I display two columns of text in the message box and align the right column?
Attached Thumbnails


Code:Sub help
Dim Help as String
Help = Help & " [Ctrl]+[Shift]+[O] encode_soft_Or_hard_spaces " & chr(13)
Help = Help & " [Ctrl]+[Shift]+[H] big_case_cHanger" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[A] remove_tAbulators" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[X] eXchange_double_spaces" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[Z] killparZ" & chr(13) & chr(13)
Help = Help & " [Ctrl]+[Shift]+[Insert] temp" & chr(13)
Help = Help & " [Ctrl]+[Shift]+[PgUp] help" & chr(13) & chr(13)
MsgBox Help, 0, "AOO-macro-4.1 "
End SubThe message box looks like this:
Attachment 36312
The problem is that I formatted the text displayed in proportional font using spaces. As a result, the macro names in the right column are not aligned. I tried hard to find a solution by searching the Internet and various manuals on OpenOffice Basic, but to no avail.
Can I display two columns of text in the message box and align the right column?
Attached Thumbnails