Old 18th March 2010, 18:34   #1
Zilatica
Junior Member
 
Join Date: Mar 2010
Location: Austin, TX
Posts: 21
Clean nsDialog Scripts

So, I've got a problem that I have solved, but I haven't solved cleanly.

I have a need to define a generic nsDialog. The dialog itself is generic enough that I want to have it in an included nsh script so that I can share both internally to the company and externally to the community. The dialog has to support parameters, and currently I have it consuming globals. How do I write an nsDialog that resides in another script (think library nsi file) that can take parameters? Would it best be defined as a macro? The macro is what I'm leaning towards, but ideally you could just define a Function that is the nsDialog definition in another script.

Any ideas?
Zilatica is offline   Reply With Quote
Old 18th March 2010, 21:45   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
If you're only going to use the dialog once then best put it in a macro. That way all parameters that are constants are evaluated on compile.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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