Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox alignment

Status
Not open for further replies.

ameedoo3000

IS-IT--Management
Sep 20, 2016
233
EG
hi all
why the center alignment in the combobox not shown !?
1_az5ngp.png
22_tfswzd.png
 
As far as I test this alignment is only for the display value, after picking from the dropdown list.
Even that works different depending on Style being Combo or Dropdown list.

Bye, Olaf.



Olaf Doschke Software Engineering
 
Well, nothing to thank for, unless the hint on setting Style to dropdown list already helps a bit towards your goal.

If you want the items to center during choice, the best way would be padding values with prefixed spaces or tabs. It's harder to get to an exact position with proportional fonts, you could use Courier New for that case, though in some cases you'd like to shift by half a character width.

Bye, Olaf.

Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top