Is there's new update?


around one or two month ago, my feature about outomatic decrement/increment textsize of calculator textbox so it wont exceed screen or too small to read, it was success with help of label and width auto, i already try it and build the apk, but suddenly it was failed again today (even in the app that i already download), i figured it out (maybe) it because label now automatic multiline when exceed screensize, i dont know if its true or not because i think if theres new update it wont affect builded apk.

or can i make that feature with another algorithm? i know mine looks not efficient.

Nothing changed/ no updates regarding Label behaviour as far as I know. A label has always dropped text to another line if too long for the width.

Use Screen.width as your guide...

As a dumb alternative, use an if/then/elseif ladder on text length to decide font size.

i dont think theres textlength properties.. or extension?

I do...

image

back then label is not multiline, like textbox but the multiline properties is disabled, then if the text is too much it will go outside screen, the textbox is still same like that

ohh thats what u mean, but im not using fontstyle/fontfamily that the width of all character is the same (i think monochrome or smth), so i cant measure it (default fontfamily)

If you set the width of a label to a value larger (x2 ?) than the screen width, the text does not wrap.

I believe you mean monospace for fixed character width font

ohh great, let me try that

hmm but the one that i measure is the labelwidth..
so when its automatic width, then if the character inside label so long that it exceed phone screen, then its fontsize get subtracted

if my label width is already set, it will not functionable

image

then use this instead ?

so im using the upper one on fonttype because the second fonttype is bad (monospace), if my user press '1' ten times, is different than pressing '×' ten times, label length is measuring number of character

i mean the width is different
1111111111
××××××××××

meanwhile the textlength is same 10=10

You could find a prettier monospace font?

https://fonts.google.com/?query=monospace

1 Like

hmm, i think that works, i never have thoughts of trying to import fonttype from outside, thanks for that one.

still this dumb pride of mine says that i want it pure from inside mit app inventor, so i feel like not cheating to my friend, thanks brother

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.