Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st March 2009, 08:48   #1
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
Smile 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.

Attached Files
File Type: 7z nswindows.7z (12.1 KB, 352 views)

Last edited by zhfi; 21st March 2009 at 09:33.
zhfi is offline   Reply With Quote
Old 3rd April 2009, 12:36   #2
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
see blow.

Last edited by zhfi; 3rd April 2009 at 12:52.
zhfi is offline   Reply With Quote
Old 3rd April 2009, 12:47   #3
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
Wink

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
Attached Files
File Type: 7z nswindows.7z (14.1 KB, 229 views)
zhfi is offline   Reply With Quote
Old 17th April 2009, 14:02   #4
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
Some thing improved for NSIS of Ansi version.
Attached Files
File Type: 7z nswindows_v2_ansi.7z (14.1 KB, 268 views)
zhfi is offline   Reply With Quote
Old 17th April 2009, 14:03   #5
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
Some thing improved for NSIS of Unicode version.
Attached Files
File Type: 7z nswindows_v2_unicode.7z (14.6 KB, 296 views)
zhfi is offline   Reply With Quote
Old 23rd December 2009, 13:52   #6
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
source code for the plugin is here:
http://ifififi.svn.sourceforge.net/s...fifi/nsWindows
zhfi is offline   Reply With Quote
Old 27th December 2009, 11:01   #7
zhfi
Junior Member
 
Join Date: Apr 2008
Posts: 16
ifififi.svn.sourceforge.net/viewvc/ifififi/nsWindows/
zhfi is offline   Reply With Quote
Old 20th October 2010, 16:24   #8
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 192
Veru good plugin! Picks you up!
jiake is offline   Reply With Quote
Old 12th June 2012, 05:46   #9
dipal
Junior Member
 
Join Date: Mar 2012
Posts: 12
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
Attached Thumbnails
Click image for larger version

Name:	nsWindows.bmp
Views:	140
Size:	774.5 KB
ID:	49716  
dipal is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump