Android Question Setting Text position and backcolor in B4XComboBox

Swissmade

Well-Known Member
Licensed User
Longtime User
HI
It seems that I do something wrong.
In The VD I set the Horizontal Alignment to CENTER_HORIZONTAL and the text is still at the left side.

Also I try to get the Backcolor when the box is open but also this is not working.

Thanks for helping me out here.


Set Backcolor B4XCombo:
B4XCombo.cmbBox.Clear
B4XCombo.cmbBox.Color = 1075711
B4XCombo.SetItems(ComboList)
 

Attachments

  • 1.png
    1.png
    17.7 KB · Views: 98
  • 2.png
    2.png
    11.3 KB · Views: 109

Mahares

Expert
Licensed User
Longtime User
In The VD I set the Horizontal Alignment to CENTER_HORIZONTAL and the text is still at the left side.
You cannot. Below is the answer to the 1st question, although if you use CSBuilder you can do it.

Also I try to get the Backcolor when the box is open but also this is not working.
Add this line:
B4X:
B4XComboBox1.cmbBox.DropdownBackgroundColor =xui.Color_Magenta
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Many thanks.

It is the first time that I use B4X Objects. lol:):)
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
You cannot. Below is the answer to the 1st question, although if you use CSBuilder you can do it.


Add this line:
B4X:
B4XComboBox1.cmbBox.DropdownBackgroundColor =xui.Color_Magenta
Working Thanks
Now check the first.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
I am not sure what is not working and what you are referring to. Can you post your code or zip a simall project and someone will definitely figure it out for you.
The Alignment of the text in the Box.
Have solve it in an other way.
The Backcolor is working perfect.
 
Upvote 0
Top