Wish B4X XUI Add MeasureTextWidth and MeasureTextHeight to B4XCanvas - klaus    Apr 13, 2018 with different results.
Example:
MeasureTextHeight("Mg") and MeasureTextHeight("M") give different results in B4A because the real height is different, but give the same result in... B4J Code Snippet Measure Multiline Text Height - Erel    Jun 11, 2020   (9 reactions) Measuring the length of multiline text is simple in B4A with StringUtils.MeasureMultilineTextHeight... javafx.scene.text.TextBoundsType;
public static double MeasureMultilineTextHeight(Font f, String text... call a non-public API with the following code:
Sub MeasureMultilineTextHeight (Font As Font, Width... B4A Code Snippet [B4X] MeasureMultilineTextHeight - Alexander Stolte    May 11, 2023   (18 reactions) /android/forum/threads/measure-multiline-text-height.84331/#content Private Sub MeasureMultilineTextHeight(xLabel As B4XView) As Double #If B4J 'https://www.b4x.com/android/forum/threads/measure-multiline-text-height.84331/#content Dim jo As JavaObject = Me Return jo.RunMethod("MeasureMultilineTextHeight", Array(xLabel.Font, xLabel.Text, xLabel.Width)) #Else if B4A Dim su As StringUtils Return su.MeasureMultilineTextHeight(xLabel,xLabel.Text) #Else... B4A Class SizeToFit routines (MeasureStringWidth, MeasureStringHeight, MeasureMultilineStringHeight) - Misterbates    Oct 17, 2017   (22 reactions)   tags: label, , Label Size module with accompanying test/demo.
Requires: StringUtils library (MeasureMultilineTextHeight... that the text fills the label
* MeasureExpectedSize - Returns Width/Height/FontSize (type... B4A Question MeasureStringHeight - Sergey_New    Mar 2, 2024 To set the label height I use this code
Dim cn As Canvas
cn.Initialize(Activity)
lbl.Height=cn.MeasureStringHeight("T", Typeface.DEFAULT,14)
To display correctly, the height of the label... B4A Question B4A 6.80 Beta #3 MeasureMultilineTextHeight - itgirl    Feb 27, 2017 Hello guys, in the Beta #3 StringUtils missing the MeasureMultilineTextHeight() ?... B4A Question can i use MeasureMultilineTextHeight with BBcodeView ? - Addo    Sep 6, 2022 i am using BBcodeview inside CLV i am trying to set BBCodeView Height Based on its Text Content
in labels i can do
label1.Height = su.MeasureMultilineTextHeight(label1, label1.Text)
is there equalvent or similar way to adjust BBcodeView Height based on its text content ?... B4A Question MeasureMultilineTextHeight measures too small with certain characters. - RB Smissaert    Sep 17, 2020 MeasureMultilineTextHeight works perfectly fine with with nearly anything I throw at it. Only exception is when the text for example contains char 9632. It then gives slightly too small values. This is not quite predictable, for example it can be fine if the last line in the view as little text. Is this a known problem? Any solutions for this? RBS... Italian [Solved by klaus] Come adattare il Panel con le label quando si usa (MeasureMultilineTextHeight)? - XorAndOr    Sep 24, 2022 uso la funzione (MeasureMultiLineTextHeight)
quindi e qui che mi sono intoppato, perchè non riesco ad... a stare sotto la Label Descrizione quando uso MeasureMultiLineTextHeight
per evitare che si sovrapponga... B4A Question Measuring height of text with non-ASCII characters - RB Smissaert    Mar 26, 2025 For this I use sUtils.MeasureMultilineTextHeight, which has always worked fine, but noticed..., but wonder what the standard way is to deal with this.
Public Sub MeasureMultilineTextHeightLabel2(oParent... * 2)
'MeasureMultilineTextHeight doesn't consider the padding!
If tLabelProps... Page: 1   2   3   4   |