Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Centered (multiline) text in OnScreenDisplay
#1
Hello All,
Does anyone know how to center text, even multiline, in OnScreenDisplay

eg. something like "This[]is multiline[]text[]that is[]centered" -->

Code:
Copy      Help
This
       is multiline
          text
         that's
        centered


I have to resize the vertical and horizontal size of the OSD dimensions depending on the size of other onscreen elements. Ideally, I would also change the size of the font depending on how much room there is and text size.
This seems very complicated if starting from scratch but I think there is something already like this in placing text onto dialog elements like buttons where there is a RIGHT or LEFT or CENTERED style.

If there was a way to figure it out in text formatting function first and then transfer it to OSD, that would be fine but don't know such a function.

Thanks for any thoughts!
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)