Some useful DlgItem changes: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Added category links.)
Line 23: Line 23:


-Stu
-Stu
[[{{ns:14}}:User Interface Functions]]

Revision as of 21:34, 30 April 2005

Author: Afrow UK (talk, contrib)


Description

These are to change text on different items of your installer. They can be used to change text on the different dialogs of your installer.

Examples

## Change Cancel button text
GetDlgItem $R0 $HWNDPARENT 2
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change Back button text
GetDlgItem $R0 $HWNDPARENT 3
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change branding text
GetDlgItem $R0 $HWNDPARENT 1027
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"

-Stu