O omoba Active Member Licensed User Longtime User Oct 24, 2012 #1 Hi, I just finished writing an app and using the Designer Script. Layout is perfect except that the Text in the labels, buttons, etc are not scaling. I dont know if this make a difference --I used %x and %y through out the Designer Script. I tried using AutoScale(Button1) and AutoScaleAll but no difference. How can I make the text scale? Thanks
Hi, I just finished writing an app and using the Designer Script. Layout is perfect except that the Text in the labels, buttons, etc are not scaling. I dont know if this make a difference --I used %x and %y through out the Designer Script. I tried using AutoScale(Button1) and AutoScaleAll but no difference. How can I make the text scale? Thanks
JonPM Well-Known Member Licensed User Longtime User Oct 24, 2012 #2 Autoscale doesn't work on %xy, just dip Upvote 0
moster67 Expert Licensed User Longtime User Oct 24, 2012 #3 JonPM said: Autoscale doesn't work on %xy, just dip Click to expand... Are you sure about that? I use AutoscaleAll and %xy in my designer-script and everything scales correctly, including text. See code below and image attached from a 10-inch tablet. B4X: AutoScaleAll lblSignalMeter.SetLeftAndRight(0%x,100%x) lblSignalMeter.SetTopAndBottom(0%y,11%y) lblCurrentChannel.SetLeftAndRight(0%x,100%x) lblCurrentChannel.SetTopAndBottom(10.50%y,17%y) lblSNR.HorizontalCenter=25%x lblSNR.SetTopAndBottom(18.50%y,24.5%y) 'etc.... If I would not use AutoScaleAll, everything would be much smaller. As far as I know, the only views which do not work in the Designer-script are the labels in a ListView and maybe also the spinner-view. Attachments SignalMeter.jpg 44.3 KB · Views: 298 Upvote 0
JonPM said: Autoscale doesn't work on %xy, just dip Click to expand... Are you sure about that? I use AutoscaleAll and %xy in my designer-script and everything scales correctly, including text. See code below and image attached from a 10-inch tablet. B4X: AutoScaleAll lblSignalMeter.SetLeftAndRight(0%x,100%x) lblSignalMeter.SetTopAndBottom(0%y,11%y) lblCurrentChannel.SetLeftAndRight(0%x,100%x) lblCurrentChannel.SetTopAndBottom(10.50%y,17%y) lblSNR.HorizontalCenter=25%x lblSNR.SetTopAndBottom(18.50%y,24.5%y) 'etc.... If I would not use AutoScaleAll, everything would be much smaller. As far as I know, the only views which do not work in the Designer-script are the labels in a ListView and maybe also the spinner-view.
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2012 #4 AutoScaleAll is not related to dip or %x/%y. It just goes over the views and scales their size, position and text size. Upvote 0
AutoScaleAll is not related to dip or %x/%y. It just goes over the views and scales their size, position and text size.