B4J Question get hight of label B4j

Solution
The width didn't turn out the way I wanted but I didn't really want to fight.

Clipboard02.jpg

LucaMs

Expert
Licensed User
Longtime User
Labels (B4J) have the bad habit of automatically adapting to the contained text.
This is a great reason to create them only in the Designer.
 
Upvote 1

alirezahassan

Active Member
Licensed User
Labels (B4J) have the bad habit of automatically adapting to the contained text.
This is a great reason to create them only in the Designer.
i want add some views with code. and i get json text from the webservice to show list with CustomListView.
i have some view under the label like button and Edit text that it depends on Bottom of the label.
what should i do?
Untitled.png
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I used this code to calculate the height of the label :
Measure Multiline Text Height
and it works but...
  1. B4J the height of the label is read-only.
  2. By declaring it as B4XView you can set the height (by code) but it doesn't change anyway.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
The width didn't turn out the way I wanted but I didn't really want to fight.

Clipboard02.jpg
 

Attachments

  • CLVTest.zip
    10.8 KB · Views: 66
Upvote 1
Solution
Top