iOS Question Font Scale vs screen size issue

Discussion in 'iOS Questions' started by techknight, Jun 7, 2019.

  1. techknight

    techknight Well-Known Member Licensed User

  2. BillMeyer

    BillMeyer Well-Known Member Licensed User


    In iOS, this is one of the better features and does not require the Android way of doing it:

    In your Designers, select your label and do the following: (Check the red underlines)


    Programatically you can do the following:

    lblUnderHeader.AdjustFontSizeToFit = True
    lblUnderHeader.Multiline = 
    and it should work the same. Experiment with the amount of text you have if multiline is not ticked - it can become very small and not legible.

    Remember, fitting to your screen here depends on your anchors (you can use the principle I described in that post you refer to above to position your place holders and adjusting the font with the code above)

    I trust this will work and explain how I do it it on iOS.
  3. techknight

    techknight Well-Known Member Licensed User

    I already figured this out for labels.

    the issue still remains with buttons, and other controls.

    I am attempting to do it this way:
    cmdNumber0.CustomLabel.AdjustFontSizeToFit = True
    It is painful to list out all the controls and do this manually, I wish there was a loop iteration somewhere I could do this with. There is probably a get all views shortcut or something I am missing that would help here.
    Last edited: Jun 10, 2019
  4. Erel

    Erel Administrator Staff Member Licensed User

    For Each v As View In Page1.RootPanel.GetAllViewsRecursive
    If v Is ...
    techknight likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice