Jim McDougal Member Licensed User Oct 26, 2024 #1 Trying to get button text on two lines using the Multiline Editor tool in B4i Designer, but no luck. Also, a longer single line will not wrap. Since I am lazy and there's probably a simple solution, I will post this question instead.
Trying to get button text on two lines using the Multiline Editor tool in B4i Designer, but no luck. Also, a longer single line will not wrap. Since I am lazy and there's probably a simple solution, I will post this question instead.
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2024 #2 If I remember correctly, you need to do it by code: B4X: Button1.As(Button).CustomLabel.Multiline = True Upvote 0
If I remember correctly, you need to do it by code: B4X: Button1.As(Button).CustomLabel.Multiline = True
Jim McDougal Member Licensed User Oct 27, 2024 #3 That did it (with a little assist for text alignment). Thank you. Upvote 0
Matt S. Member Licensed User Feb 16, 2025 #4 Erel said: If I remember correctly, you need to do it by code: B4X: Button1.As(Button).CustomLabel.Multiline = True Click to expand... Exactly. And the same code can be used to set custom font: B4i: myButton.CustomLabel.Font = Font.CreateNew2(myFontName,myFontSize) Upvote 0
Erel said: If I remember correctly, you need to do it by code: B4X: Button1.As(Button).CustomLabel.Multiline = True Click to expand... Exactly. And the same code can be used to set custom font: B4i: myButton.CustomLabel.Font = Font.CreateNew2(myFontName,myFontSize)