From 682ebdedeab0b67c5e4f04bfbe657d1d0e34998f Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 22 Feb 2008 17:34:24 +0000 Subject: [PATCH] document macros git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5549 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/nsDialogs/Readme.html | 158 ++++++++++++++++++++++++++++++---- 1 file changed, 141 insertions(+), 17 deletions(-) diff --git a/Contrib/nsDialogs/Readme.html b/Contrib/nsDialogs/Readme.html index d21a4855..58a5a90b 100644 --- a/Contrib/nsDialogs/Readme.html +++ b/Contrib/nsDialogs/Readme.html @@ -36,7 +36,6 @@ code
  • Control State
  • Real-time Notification
  • Memory
  • -
  • Helpful macros
  • @@ -56,6 +55,23 @@ code
  • OnNotify
  • +
  • +Macro Reference + +
  • FAQ
  • @@ -182,7 +198,7 @@ SectionEnd

    Adding Controls

    -

    Compiling the last script and running it results in an empty page which is not very useful. So now we'll add some controls to it to. To do so, we'll use ${NSD_Create*} macros from nsDialogs.nsh. Each of those macros takes 5 parameters - x, y, width, height and text. Each macro also returns one value on the stack, which is the new control's HWND. Like the dialogs HWND, it must be popped from the stack and saved.

    +

    Compiling the last script and running it results in an empty page which is not very useful. So now we'll add some controls to it to. To do so, we'll use ${NSD_Create*} macros from nsDialogs.nsh. Each of those macros takes 5 parameters - x, y, width, height and text. Each macro also returns one value on the stack, which is the new control's HWND. Like the dialogs HWND, it must be popped from the stack and saved.

    Each of the measurements that the macros take can use one of three unit types - pixels, dialog units or percentage of the dialog's size. It can also be negative to indicate it should be measured from the end. To use dialog units, the measurement must be suffixed with the letter u. To use percentage, the measurement must be suffixed with the percentage sign - %. Any other suffix, or no suffix, means pixels.

    @@ -228,7 +244,7 @@ Section SectionEnd -

    Available control types that can be created with ${NSD_Create*} are:

    +

    Available control types that can be created with ${NSD_Create*} are: