Autoscale

omoba

Active Member
Licensed User
Longtime User
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
 

moster67

Expert
Licensed User
Longtime User
Autoscale doesn't work on %xy, just dip

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
    SignalMeter.jpg
    44.3 KB · Views: 298
Upvote 0
Top