Loading ...
Sorry, an error occurred while loading the content.

43550RE: [libertybasic] Aligning text and objects

Expand Messages
  • William Lopez
    Aug 2, 2011
      If 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.



      To: libertybasic@yahoogroups.com
      From: jcoones@...
      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]
    • Show all 12 messages in this topic