Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ComboBox with correct aligned elements

 
Eric Jinson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need following ComboBox:
1. Arrowbutton needs to be on the left side.
2. Textalignment needs to be left-to-right.
3. Popup alignment needs to be left-to-right, with the left top corner of the popup touching the left bottom corner of the combobox textfield.

As I see it, if I align elements left-to-right, then
1. Text is aligned left-to-right
2. Popup is aligned left-to-right
3. Arrowbutton is on the right side.

If I align elements right-to-left, then
1. Text is aligned right-to-left
2. Popup is aligned right-to-left
3. Arrowbutton is on the left side.

What do I have to do?
 
Eric Jinson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it is not. The solutions available either cover the first or the second variant. But I need everything on the left side!
 
John Damien Smith
Ranch Hand
Posts: 298
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could apply a custom skin to your ComboBox to modify the layout algorithm.

The following will left align the drop-down arrow for the ComboBox, rather than using the default right-aligned drop-down arrow.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic