Some useful DlgItem changes: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|Afrow UK}}
|<small>Author: [[{{ns:2}}:Afrow UK|Afrow UK]] ([[{{ns:3}}:Afrow UK|talk]], [[{{ns:-1}}:Contributions/Afrow UK|contrib]])</small>
 
|}
<br style="clear:both;">
== 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 18: 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 24: Line 22:
-Stu
-Stu


[[{{ns:14}}:User Interface Functions]]
[[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