Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

ComboBox with correct aligned elements

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic