Announcement

Collapse
No announcement yet.

Right Alignment with strings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Right Alignment with strings

    Hi,

    I have a string field and set the "alignment" to "right", when I type in a message it is aligned right, however, when I use

    genieWriteStr(0, "this is a test") ;

    "this is a test" is aligned left again. How do I make it aligned right again?
    Attached Files

  • #2
    Only static strings are aligned, dynamic strings you need to align yourself.

    You can do that by prepending spaces to the string (2 spaces for each character position you want to move it for True type fonts)
    Mark

    Comment


    • #3
      ok, thanks!

      One more question, is there a limit for the amount of characters per string, with a full size string field and a very small font I experienced, that I could put in up to 70 characters before it stops printing.

      Is that correct?

      Comment


      • #4
        You can adjust the maximum length available in File, Options, Genie
        Mark

        Comment

        Working...
        X