iOS Question Combo box text alignment problem

davemorris

Active Member
Licensed User
Longtime User
Hi, Guys

I have a problem with setting the alignment of text in the B4XComboBox view so it is right aligned. Tried setting the Label Properties -> Text Alignment to Right in the designer but it appears not to work (it always appears to centre the text).

Can anyone help.

Regards
Dave
 
Solution
B4X:
Dim no As NativeObject = B4XComboBox1.mBtn
no.SetField("contentHorizontalAlignment", 2)
no.RunMethod("setContentEdgeInsets:", Array(no.MakeEdgeInsets(0, 0, 10, 0)))
Top