![]() |
#1 |
Junior Member
Join Date: Feb 2013
Posts: 11
|
Question: Center Align DropList
Hello there,
I am trying to align the strings listed inside a droplist to the horizontal center of said droplist. Having quite a hard time trying to do so. ${AddStyle} or ${AddExStyle} in combination with ${ES_CENTER} or ${SS_CENTER} does not seem to work for me. Google brings up html, c#, etc. but nothing what would directly help me or maybe I am just blind. Does anyone here know of a workaround, besides trying to add spaces to the strings to center them manually, which opens another can of problems for me ![]() Thank you for your time! PHP Code:
|
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,355
|
You can't just mix and match random styles. Combobox styles are CBS_* and there is no style for alignment. The only way to make a droplist center its text would be to use the CBS_OWNERDRAWFIXED style and custom draw. This can only be done with a custom plug-in.
You can also fake it with a ComboBox by playing with its edit control: PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2013
Posts: 11
|
Thanks a lot, especially for your example!
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|