HMI Pad Forums Main Forums Feature Requests Different Font Size for iPad and iPhone

This topic contains 2 replies, has 2 voices, and was last updated by  gregM 5 years, 6 months ago. This post has been viewed 1836 times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20778

    gregM
    Participant

      Title pretty much says it all.

      Different font sizes on Objects for iPad and iPhone would be nice.

      Buttons, Labels, Textboxes…. etc, etc.

      #20780

      John
      Keymaster

        Hi Greg,

        On HMI Draw/View you can use the $System.interfaceIdiom property to determine whether you are on an iPhone/iPod or on an iPad.

        For example, in the case of a font size you can use the expression below to set it to 18 for the iPad and 15 otherwise.

        $System.interfaceIdiom==1 ? 18 : 15

        #20781

        gregM
        Participant

          Perfect! thanks. :-)

        Viewing 3 posts - 1 through 3 (of 3 total)

        You must be logged in to reply to this topic.

        Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
        Science and Technology Park of the University of Girona, Emili Grahit, 91 (NarcĂ­s Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244