techknight Well-Known Member Licensed User Longtime User Jun 7, 2019 #1 So, With Android, I found this thread here: https://www.b4x.com/android/forum/threads/avd-screen-size-scale.99690/#post-627541 This worked awesome in all of my apps to keep the Fonts within the controls without overflow or multiline issues. Question is, What is the equivalent for iOS? Thanks!
So, With Android, I found this thread here: https://www.b4x.com/android/forum/threads/avd-screen-size-scale.99690/#post-627541 This worked awesome in all of my apps to keep the Fonts within the controls without overflow or multiline issues. Question is, What is the equivalent for iOS? Thanks!
BillMeyer Well-Known Member Licensed User Longtime User Jun 8, 2019 #2 @techknight 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: Code: Copy lblUnderHeader.AdjustFontSizeToFit = True lblUnderHeader.Multiline = True 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. Upvote 0
@techknight 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: Code: Copy lblUnderHeader.AdjustFontSizeToFit = True lblUnderHeader.Multiline = True 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.
techknight Well-Known Member Licensed User Longtime User Jun 10, 2019 #3 I already figured this out for labels. the issue still remains with buttons, and other controls. I am attempting to do it this way: Code: Copy 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 Upvote 0
I already figured this out for labels. the issue still remains with buttons, and other controls. I am attempting to do it this way: Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2019 #4 techknight said: I wish there was a loop iteration somewhere Click to expand... For Each v As View In Page1.RootPanel.GetAllViewsRecursive If v Is ... [/code] Upvote 0
techknight said: I wish there was a loop iteration somewhere Click to expand... For Each v As View In Page1.RootPanel.GetAllViewsRecursive If v Is ... [/code]