43550RE: [libertybasic] Aligning text and objects
- Aug 2, 2011If you want text printed to the screen when using NOMAINWIN, you must use a textbox, graphicbox, statictext, or texteditor to "contain" the text. You will probably be printing a defined string. Pad the string front and rear with spaces until it is centered, then print the string to the container. NOTE BENE: different fonts will have different character widths. To truly center your text, you need to use a monospaced font, such as Courier New.
Date: Tue, 2 Aug 2011 17:32:02 +0000
Subject: [libertybasic] Aligning text and objects
I purchased LB some time ago but never really got to use it much. I have since retired and now have time to learn how it works.
One question I have, which may seem simple, is:
when using NOMAINWIN, how do you position text in the display area? In other words, if I have some text that I want centered horizontally on the screen, what is the best way to do this?
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>