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!
!include "MUI2.nsh"
!include "nsDialogs.nsh"
!define PRODUCTNAME "DropListAlignCenter"
Name "${PRODUCTNAME}"
OutFile "${PRODUCTNAME}.exe"
RequestExecutionLevel user
Var DropList
!insertmacro MUI_LANGUAGE "English"
Page custom nsDialogsMainPage
Section ""
SectionEnd
Function nsDialogsMainPage
nsDialogs::Create 1044
Pop $0
${If} $0 == error
Abort
${EndIf}
${NSD_CreateDropList} 100u 50u 120u 200u ""
Pop $DropList
${NSD_CB_AddString} $DropList "Alice"
${NSD_CB_AddString} $DropList "Franklin"
${NSD_CB_AddString} $DropList "set"
${NSD_CB_AddString} $DropList "v0.09"
${NSD_CB_AddString} $DropList "Apple Computer, Inc."
${NSD_CB_AddString} $DropList "Microsoft Corporation"
nsDialogs::Show
FunctionEnd