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: