zhfi
21st March 2009 09:48 UTC
nsWindows plugin for NSIS
this plugin is modified on nsDialogs, support for window in nsis.
Most of it's macro is the same with nsDialogs, you just need to replace ${NSD_macro} with ${NSW_macro} in your script.
note: if you want to create more than one window at the same time, you need nsWindows.nsh, copy nsWindows.dll to nsis's plugins Directory, and replace "nsWindows::function" with "${nsWindows}::function" in your script.
:D
zhfi
3rd April 2009 13:36 UTC
see blow.
zhfi
3rd April 2009 13:47 UTC
this is the fixed version of nsWindows.
the plugins, nsh head files and some examples were compressed in the nsWindows.7z documents.
a simple nsWindows's page examples like this:
;handle to window 3
var hwindow3
Function nsWindowsPage3
IsWindow $hwindow3 Create_End
${NSW_CreateWindow} $hwindow3 "WND 3" 1018
;set window pos
; ${NSW_SetWindowPos} $hwindow3 0 0
;set window size
${NSW_SetWindowSize} $hwindow3 200 100
${NSW_CenterWindow} $hwindow3 $hwndparent
;call back function of window 3
${NSW_OnBack} OnBack3
${NSW_CreateButton} 50 -30 50 18u 'WND 1'
Pop $R0
${NSW_OnClick} $R0 nsWindowsPage1
${NSW_CreateButton} 100 -30 50 18u 'WND 2'
Pop $R0
${NSW_OnClick} $R0 nsWindowsPage2
${NSW_Show}
Create_End:
ShowWindow $hwindow3 ${SW_SHOW}
FunctionEnd
Function OnBack3
${NSW_DestroyWindow} $hwindow3
FunctionEnd
zhfi
17th April 2009 15:02 UTC
Some thing improved for NSIS of Ansi version.
zhfi
17th April 2009 15:03 UTC
Some thing improved for NSIS of Unicode version.
zhfi
23rd December 2009 14:52 UTC
source code for the plugin is here:
http://ifififi.svn.sourceforge.net/s...fifi/nsWindows
zhfi
27th December 2009 12:01 UTC
ifififi.svn.sourceforge.net/viewvc/ifififi/nsWindows/
jiake
20th October 2010 17:24 UTC
Veru good plugin! Picks you up!
dipal
12th June 2012 06:46 UTC
How to remove Titlebar from nsWindows??
I used nsWindows as custom messagebox, it works perfectly.
Now i want to remove the Titlebar. but not finding a way to do it.
Can anybody suggest how to achieve this..??
Please find attachment