OpenOffice Basic: MsgBox using two columns of text
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
OpenOffice Basic: MsgBox using two columns of text
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 Sub
The message box looks like this:
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?
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Original Poster
Rep:
@shruggy
It is a shame, but I have been using Window Maker since 1997, and I love it – no reciprocity (and you probably deserve my third thank you).
* * *
EDITED1: I just added information about my window manager in Slackware and the desktop environment in Mint to my profile. (I have to work hard to keep MATE in Mint in a condition I like).
* * *
EDITED2: I used AfterStep before Window Maker so I must be crazy.
Well, according to Windows Maker docs it is probably Displayfont (Helvetica by default). You can try changing either this setting or the fontconfig alias for Helvetica. What is the output of fc-match Helvetica? And fc-match sans?
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Original Poster
Rep:
@shruggy
# fc-match Helvetica
n019003l.pfb: "Nimbus Sans L" "Regular"
# fc-match sans
DejaVuSans.ttf: "DejaVu Sans" "Book"
(You can be a genius, shruggy).
* * *
EDITED1:
Quote:
You can try changing either this setting or the fontconfig alias for Helvetica.
This is not my problem, but the problem of the users of my AOO-macro-4.1. I try to provide them with the best code I can, but I cannot check all the window managers and desktop environments to give a hint of the correct font.
* * *
EDITED2:
By the way, there is no Cantarell font in my system.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Original Poster
Rep:
@shruggy
I have installed the gnome-common and cantarell-fonts package from SlackBuilds. Then I changed the font in WPrefs from Trebuchet MS to Cantarell.
Unfortunately, after these changes, the help window looks exactly the same as in my post #5 (the right column is not aligned as in the mimorek’s screenshots).
* * *
EDITED: In fact, the window manager seems to be using exactly the same font after these changes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.