REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Centering a HMI string

    REXYGEN HMI Designer
    2
    2
    424
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sadilekivan
      last edited by sadilekivan

      I am displaying an informational message on the HMI screen that is fitted into a rectangle and Id like to center it.

      I already have an idea of solving it by prefixing and suffixing it with nonbreakable spaces with a block in the Rexygen studio with a total fixed length but this all seems too much for just centering a string on the web.

      Any way to simply do it on the webpage/HMI?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by

        Hi Ivan,

        thanks for question.

        You are right - there is more simple way to center a string than adding variable prefix and suffix.

        All you need is:

        • Add a DisplayString into .svg file (Ctrl + L -> GENERAL -> Drag & Drop "DisplayString.svg")
        • Hit F8 (or select Text Tool)
        • Select the DisplayString and center the string:0_1584564636681_6403c868-bfdf-465a-9b80-02571bbdacab-image.png

        Let me know if I can be of any assistance.

        Regards,
        Tomas

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

        There is also an outdated REXYGEN community forum.

        Powered by NodeBB.