Added SetCtlColors Windows COLOR_* constants support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6795 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6fc995ed70
commit
a71541bb87
4 changed files with 65 additions and 56 deletions
|
@ -8,6 +8,8 @@ Released on ? ?th, 201?
|
|||
|
||||
\S2{} Minor Changes
|
||||
|
||||
\b SetCtlColors now supports Windows color constants
|
||||
|
||||
\b Fixed buffer size bug in winchar.cpp (\W{http://sf.net/p/nsis/patches/271}{patch #271})
|
||||
|
||||
\S2{} Translations
|
||||
|
@ -3223,7 +3225,7 @@ Released on December 6th, 2002
|
|||
|
||||
\b !ifdef and friends can now be used in macros
|
||||
|
||||
\b \R{sendmessage}{SendMessage} can send strings (put STR: before a param) and supports timeouts
|
||||
\b \R{sendmessage}{SendMessage} can send strings (put cw{STR:} before a param) and supports timeouts
|
||||
|
||||
\b Right mouse button "Copy to clipboard" context menu for the Details window
|
||||
|
||||
|
|
|
@ -120,16 +120,21 @@ Sets mode at which commands print their status. None has commands be quiet, list
|
|||
|
||||
\S2{setctlcolors} SetCtlColors
|
||||
|
||||
\c hwnd [/BRANDING] [text_color] [transparent|bg_color]
|
||||
\c hwnd [/BRANDING] [text_color|SYSCLR:text_color_id] [transparent|bg_color|SYSCLR:bg_color_id]
|
||||
|
||||
Sets the text and background color of a static control, edit control, button or a dialog. \e{text_color} and \e{bg_color} don't accept variables. Use \R{getdlgitem}{GetDlgItem} to get the handle (HWND) of the control. To make the control transparent specify "transparent" as the background color value. You can also specify /BRANDING with or without text color and background color to make the control completely gray (or any other color you choose). This is used by the branding text control in the MUI.
|
||||
Sets the text and background color of a static control, edit control, button or a dialog. \e{text_color} and \e{bg_color} don't accept variables. Use \R{getdlgitem}{GetDlgItem} to get the handle (HWND) of the control. To make the control transparent specify \c{transparent} as the background color value. Prefix the color value with \cw{SYSCLR:} to specify a Windows \cw{COLOR_*} constant. You can also specify \cw{/BRANDING} with or without text color and background color to make the control completely gray (or any other color you choose). This is used by the branding text control in the MUI.
|
||||
|
||||
\c FindWindow $0 "#32770" "" $HWNDPARENT
|
||||
\c GetDlgItem $0 $0 1006
|
||||
\c SetCtlColors $0 0xFF0000 0x00FF00
|
||||
\c Page Components "" CmpntPageShow
|
||||
\c Function CmpntPageShow
|
||||
\c FindWindow $1 "#32770" "" $HWNDPARENT
|
||||
\c GetDlgItem $0 $1 1006
|
||||
\c SetCtlColors $0 0xFF0000 0x00FF00 ; Red on Green
|
||||
\c GetDlgItem $0 $1 1022
|
||||
\c SetCtlColors $0 SYSCLR:23 SYSCLR:24
|
||||
\c FunctionEnd
|
||||
|
||||
\NsisWarnBlockContainerBegin
|
||||
\\<b\\>Warning:\\</b\\> Setting the background color of check boxes to "transparent" may not function properly when using \c{\R{axpstyle}{XPStyle} on}. The background may be completely black, instead of transparent, when using certain Windows themes.
|
||||
\\<b\\>Warning:\\</b\\> Setting the background color of check boxes to \c{transparent} may not function properly when using \c{\R{axpstyle}{XPStyle} on}. The background may be completely black instead of transparent when using certain Windows themes.
|
||||
\NsisWarnBlockContainerEnd
|
||||
|
||||
\S2{setsilent} SetSilent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue