Menu

Align Message (DrawMessage)

Alexandre
2013-10-19
2013-10-19
  • Alexandre

    Alexandre - 2013-10-19

    Hi

    Thanks for the previous help!

    Now i would like to know if there is a way to Align a message from DrawMessage
    cause it goes in center of image, i would like the message to be on the left.

    TY in advance

     
  • lbayuk

    lbayuk - 2013-10-19

    No, it doesn't currently give you any control about alignment or positioning.

    (The way it works is that it calculates how much space the text will need, after optional word wrapping. The text is top/left aligned within that space, and the resulting box is centered within the image.)

    This was meant for use with "fatal" errors, where the text would be displayed alone in the image. So there didn't seem to be any point in not centering it.

    Are you using DrawMessage in some other way? I'm open to new feature requests, provided they are useful and don't break something else.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.