Archive: Label Positioning Problem [MUI - InstallOptions]


Label Positioning Problem [MUI - InstallOptions]
I am currently trying to position two labels in the button bar of a custom Welcome window. All my attempts of doing so failed as of right now.

(Desired Result: Version and copyright label.)
http://img294.imageshack.us/img294/5...lmockupma2.png

I have tried in a lot of ways to make it work but has failed. Here is the code I use to make the rest of the interface show up.


!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NumFields" "4"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NextButtonText" "Connect"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "CancelButtonText" "Cancel"

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 2" "Text" "Welcome!"
!insertmacro MUI_INSTALLOPTIONS_wRITE "ioSpecial.ini" "Field 2" "Bottom" "24"

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Top" "31"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "120"

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Type" "DropList"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "DropList"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "Server 1"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Left" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Right" "315"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" "160"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "ListItems" "Server 1|Server 2|Server 3"


Any ideas?

From a quick forum search:
http://forums.winamp.com/showthread....hreadid=252052
Might be a solution about what you're looking for.


Originally posted by Red Wine
From a quick forum search:
http://forums.winamp.com/showthread....hreadid=252052
Might be a solution about what you're looking for.
I have tried adding the label manually in the resource file, but I can't seem to change the text of the label via SendMessage.


GetDlgItem $0 $HWNDPARENT 1045
SendMessage $0 ${WM_SETTEXT} 0 "STR: Version 1.9 [OEM]"


The code above doesn't work (My label has a control id of 1045 in the resource file)

Edit: Nevermind, got it to work. Thanks

Give a try to this:

GetDlgItem $0 $HWNDPARENT 1045
EnableWindow $0 1
SendMessage $0 ${WM_SETTEXT} 1 "STR:Version 1.9 [OEM]"
EnableWindow $0 0