alirezahassan Active Member Licensed User Longtime User Sep 24, 2021 #1 hi all, there is any way to get Hight of label? To set the panel below. note: i have some view under the label. thanks Last edited: Sep 24, 2021
hi all, there is any way to get Hight of label? To set the panel below. note: i have some view under the label. thanks
Solution LucaMs Sep 26, 2021 The width didn't turn out the way I wanted but I didn't really want to fight.
LucaMs Expert Licensed User Longtime User Sep 24, 2021 #2 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
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.
alirezahassan Active Member Licensed User Longtime User Sep 25, 2021 #3 LucaMs said: 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. Click to expand... 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? Upvote 0
LucaMs said: 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. Click to expand... 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?
alirezahassan Active Member Licensed User Longtime User Sep 25, 2021 #4 hi dear @Erel is there any way for b4j? could you please develop JStringUtils about multi line text height for b4j? Upvote 0
hi dear @Erel is there any way for b4j? could you please develop JStringUtils about multi line text height for b4j?
LucaMs Expert Licensed User Longtime User Sep 25, 2021 #5 I used this code to calculate the height of the label : Measure Multiline Text Height and it works but... B4J the height of the label is read-only. By declaring it as B4XView you can set the height (by code) but it doesn't change anyway. Upvote 0
I used this code to calculate the height of the label : Measure Multiline Text Height and it works but... B4J the height of the label is read-only. By declaring it as B4XView you can set the height (by code) but it doesn't change anyway.
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2021 #6 alirezahassan said: hi dear @Erel Click to expand... Please don't do it. LucaMs said: By declaring it as B4XView you can set the height (by code) but it doesn't change anyway. Click to expand... Make sure that the "handle resize event" option is unchecked in the layout. Upvote 0
alirezahassan said: hi dear @Erel Click to expand... Please don't do it. LucaMs said: By declaring it as B4XView you can set the height (by code) but it doesn't change anyway. Click to expand... Make sure that the "handle resize event" option is unchecked in the layout.
LucaMs Expert Licensed User Longtime User Sep 26, 2021 #7 The width didn't turn out the way I wanted but I didn't really want to fight. Attachments CLVTest.zip 10.8 KB · Views: 223 Upvote 1 Solution