Some useful DlgItem changes: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library)
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{PageAuthor|Afrow UK}}
== Description ==
== Description ==
These are to change text on different items of your installer.
These are to change text on different items of your installer.
Line 14: Line 16:


## Change branding text
## Change branding text
GetDlgItem $R0 $HWNDPARENT 1027
GetDlgItem $R0 $HWNDPARENT 1028
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"
</highlight-nsis>
</highlight-nsis>
Line 20: Line 22:
-Stu
-Stu


Page author: Afrow UK
[[Category:User Interface Functions]]

Latest revision as of 04:28, 31 May 2009

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 1028
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"

-Stu