yosi
April 30, 2024, 8:39pm
1
Hi,
I found a very annoying bug, please fix it.
the bug:
I set my default text label to "test".
than I show in alert the width of the lable.
until here everything fine.
after it I changed the text of the lable to "test2".
now the width need to be longer then the first one.
but here is the bug, is NOT longer then the first one, it is like the first one.
it seems that if you changing text and then immediately getting the width so it is not give you the real width.
is it really a bug? or it is just on my phone?
please fix it.
Ramon
April 30, 2024, 9:10pm
3
The same response than in the other topic....use a clock, and give it a little interval.
yosi
April 30, 2024, 9:16pm
4
My final mission is to find when a random text join with spaces and then after spaces the word connect. I need to find what is the maximum spaces need that the lable width will be smaller from 50% of the screen. How can i do it?
Ramon
April 30, 2024, 9:20pm
5
Do you need to know the number of spaces or only to align the label text to the right?
ABG
April 30, 2024, 9:24pm
6
Your job would be much easier if you use a monospace font.
Here's a little tool to grab widths, if you want to build a dictionary of character widths.
Beware of kerning, which fits some character pairs closer than the sum of their individual widths.
text_width.aia (2.0 KB)
yosi
April 30, 2024, 9:24pm
7
I am trying like in list view to make one text in the left and text "connect" in the right
yosi
April 30, 2024, 9:26pm
8
You have any Idea for this?
yosi
April 30, 2024, 9:26pm
9
Ok, thanks
I will try it tomorrow
Ramon
April 30, 2024, 9:34pm
10
Are you referring to a label on the left edge of the screen and another label attached to the right edge of the screen? like this?
yosi
May 1, 2024, 4:32am
11
Like this but with list view
I would use CompCreator for this, and build my own listview with labels to the left and right
Extension to create/remove visible components dynamicly.
BLOCKS
Create:
[2022-01-20_192218]
Create a visible component in a container.
component: String or Component. component Class Name.
in: Component. where the new component to be created inside.
Remove
[2022-01-20_123711]
Remove the component from screen. if it's a container component, all his children will be removed.
Children
[2022-01-21_195051]
Return a list of component container's children.
This can be used for native component…
also
NewCardViewDemo_1 (1).aia (94.9 KB)
[image]
I keep the first item not set as card, it's not generated by compcreator, I got the template from this.
Have you found the search button on the community yet ? (Hint: top right of screen)
1 Like
yosi
May 1, 2024, 8:15am
15
Ok, thank you for the reply