![]() |
#81 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
There's an excellent tutorial in the nsDialogs readme: http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html
You can use the NSIS Dialog Designer for generating the layout-specific code, then use that in your nsDialogs page functions. (Note: When using nsDialogs, make sure you use MUI2, not MUI.) |
![]() |
![]() |
![]() |
#82 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Version 1.1.2 released
v.1.1.2 - 2013-01-11
http://coolsoft.altervista.org/nsisdialogdesigner Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#83 |
Member
Join Date: Jun 2011
Posts: 52
|
Little problem with CoordinateSystem
Hi,
I noticed that when inserting a DirRequest control two controls are created, like the text below, so far so good. PHP Code:
I solved with changing the dialog's CoordinateSystem to PPPP with inherit at the control, but think not the best choice, could you take a look on this behavior? Many thanks! |
![]() |
![]() |
![]() |
#84 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
![]()
I just released an updated version that fixes the bug you reported, both on DirRequest and on FileRequest controls.
code: Latest version can be found here: http://coolsoft.altervista.org/nsisdialogdesigner Thanks for your feedback. Claudio Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#85 |
Member
Join Date: Jun 2011
Posts: 52
|
![]()
Hi, me again...
Just for start, I´d like to say that this is the best editor for NSDialogs available. So lets to the problem. I´ve playing with some dialogs, and have noticed that after set size to 1044 and placed some controls, hitting test compiling and then the compiled dialog pops, they're different!! So, I done some testing, and saw that this behavior occurs when using DLU to size and place controls (default) . I got some time reading... and found this link... http://blogs.msdn.com/b/oldnewthing/.../17/74811.aspx and this: https://groups.google.com/forum/#!to...32/fT3gXGbwISc So, I adapted the sample code from here http://nsis.sourceforge.net/Get_text_dimensions to convert pixels units to dlu and voilá, the size and positions are equal. Hope you can fix it, if more tests needed please ask. |
![]() |
![]() |
![]() |
#86 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
![]() Quote:
Since 1044 is bigger than the others, the bad behavior is much more evident here. Thanks to your feedback (and the samples you provided) I found 2 bugs:
![]() I also added a new feature: a new "All" subproperty into CoordinateSystem controls property, that allows user to change X,Y,Width,Height subproperties together in a shot. Thanks again for your detailed feedback. Cheers Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#87 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
New version 1.2.0 released
Quote:
v.1.2.0 - 2014-07-11
Thanks for your feedback. Claudio Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#88 |
Member
Join Date: Jun 2011
Posts: 52
|
![]()
Wow! this was fast... testing here...
billion thanks ![]() |
![]() |
![]() |
![]() |
#89 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Your feedback was really detailed, making it easier to find and fix...
Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#90 |
Junior Member
Join Date: Mar 2009
Posts: 41
|
Is the source available?
|
![]() |
![]() |
![]() |
#91 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
No, sorry.
Maybe in the future... Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#92 |
Member
Join Date: Jun 2011
Posts: 52
|
Background dialog color selector problem
nothing huge, but when selecting transparent as background color of dialog, i get this error.
Error occours only with background dialog, controls are working fine. Thanks! |
![]() |
![]() |
![]() |
#93 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
That's the default message show by the .NET Framework when BackColor property of a Form is set to Color.Transparent... being at design time, sadly, it seems like a runtime exception.
I'll intercept the change and show a more "reassuring" MessageBox... ![]() You'll find the fix into next version. Thanks for reporting it. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#94 |
Junior Member
Join Date: Apr 2009
Posts: 8
|
How to create icon?
According the Website, NSIS Dialog Designer should support icons. But I cannot find a way to create one.
Any hints? |
![]() |
![]() |
![]() |
#95 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
I copied that list from nsdialog documentation.
NSISDialogDesigner doesn't have the Icon object but the more generic Bitmap. Will update the webpage accordingly. What are you trying to do? Take a look here for a discussion on icon usage. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#96 |
Junior Member
Join Date: Apr 2009
Posts: 8
|
I came across the problem while rewriting an hand-crafted dialog containing a few icons, in order to use the dialog code generated by your tool. The existing solution works perfectly, everything seems to be correct.
code: I don't like the idea, creating the icons with ${NSD_CreateBitmap}. Even if it would be possible in some ways, it's simply not made for that purpose. The graphics are icon files (.ico), not bitmaps (.bmp). So my temporary solution is not using the Designer for that dialog. |
![]() |
![]() |
![]() |
#97 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
That's fine. I have a workaround that bmaybe it's useful to you:
all the controls available in NSISDialogDesigner have a property named ControlCustomScript. Everything you add to that property is emitted into the generated script, so you could put your custom script in there. Page also has HeaderCustomScript and FooterCustomScript: the content of these properties will be prepended/appended to the generated script. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#98 |
Junior Member
Join Date: Apr 2009
Posts: 8
|
I saw and I already tried using the ControlCustomScript property. Nice idea so far. But in my case, I'll loose all the comfort with creating and positioning the icon control.
|
![]() |
![]() |
![]() |
#99 |
Member
Join Date: Jun 2011
Posts: 52
|
A fast solution, but not definitive one is to edit nsdialogs.nsh and check file extension when creating bitmap or icons... then you can add a icon or bitmap and the script will create the control accordingly
|
![]() |
![]() |
![]() |
#100 |
Member
Join Date: Jun 2011
Posts: 52
|
Problem with visible=False
When trying to set visible to false for buttons nothing happens at all...
The script remains untouched. |
![]() |
![]() |
![]() |
#101 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
After your message I double checked all of the controls in version 1.2.0 and found some inconsistency:
This is the script generated by version 1.2.0 for a default button: code: and this is the script generated for the same button when Visible = False code: Could you please double check it on 1.2.0 before I'll release 1.2.1? Otherwise please post a simple .nsddef file here (please remove all unrelated controls) and I'll have a look. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#102 |
Member
Join Date: Jun 2011
Posts: 52
|
Sorry, forgot to mention... it was a DirRequest
![]() Other things im´s trying to use without luck.. Onclick and Onchange on DirRequest does nothing, cant change default function created by the script. CustomControlScript seems to do nothing at all too. Thanks! |
![]() |
![]() |
![]() |
#103 |
Member
Join Date: Jun 2011
Posts: 52
|
Another Thing
Sorry to multiple posting...
I've discovered that bring to front and send to back aren't actually working... It's supposed to reorder the creation of controls on script, bottom (1) to top (highest), But it's not functioning ![]() |
![]() |
![]() |
![]() |
#104 | ||
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
I fixed the bugs you found, thanks.
Quote:
Having a second look at this implementation I see it's not so user friendly. Will think about a better one; meanwhile I'm listening for any suggestion. Quote:
What you mean with "can't directly refer nsdinc files using !include"? Author of NSIS Dialog Designer |
||
![]() |
![]() |
![]() |
#105 | |
Member
Join Date: Jun 2011
Posts: 52
|
explaining...
Quote:
PHP Code:
I'm doing like this so I can control the ''Show'' event and do other stuff before showing window... (just my way to use this) But, when I edit manually the nsdinc file, and need to edit in editor again for some reason, the Z order of controls are changed (specially background images), and then I have to edit manually again... Or, the other way... remove all images and add again, but if I have to add one more control I do have to remove all images then add them again to keep images att bottom Z order. Hope now is clear ![]() |
|
![]() |
![]() |
![]() |
#106 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Ok, now it's clear.
I'm thinking about removing the useless TabIndex property or, at least, sync it with the z-order. Meanwhile do not edit .nsdinc files directly but fix creation order using the TabIndex property of each control (i.e. set it to 0 for background bitmap and 1,2,3,... for other controls). Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#107 | ||
Member
Join Date: Jun 2011
Posts: 52
|
Quote:
Quote:
Many Thanks! |
||
![]() |
![]() |
![]() |
#108 |
Member
Join Date: Jun 2011
Posts: 52
|
didn't noticed that version 1.3 already published...
working like a charm... thanks! |
![]() |
![]() |
![]() |
#109 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Version 1.3.0 released
Version 1.3.0 was just released.
v.1.3.0 - 2014-08-12
http://coolsoft.altervista.org/nsisdialogdesigner Quote:
![]() Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#110 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
![]() Quote:
After that, the dialog will go into TabOrder set mode, so you can click on your controls starting from the one you want to set TabIndex=0 and then the others. To exit TabOrder set mode, do the command again. Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#111 |
Junior Member
Join Date: Mar 2014
Posts: 26
|
i have a problem , when i want to create a button and a bitmap, and the bitmap show on the button, why i can't do this, how can i do this.
|
![]() |
![]() |
![]() |
#112 | |
Member
Join Date: Jun 2011
Posts: 52
|
Quote:
little example: PHP Code:
have a look http://nsis.sourceforge.net/SkinnedButton_plug-in |
|
![]() |
![]() |
![]() |
#113 |
Member
Join Date: Jun 2011
Posts: 52
|
compile test problem
Tried to use FooterCustomScript and HeaderCustomScript and discovered a little problem..
Cant test it using the complile button at Dialog Designer, but the nsdinc file is created correctly... It seems like a problem with the custom script on %temp%\NSISDialogDesigner.. the functions are created empty, and the header one gets below the footer one at the script. |
![]() |
![]() |
![]() |
#114 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Version 1.3.2 released
Version 1.3.2 was just released.
v.1.3.2 - 2014-11-10
http://coolsoft.altervista.org/nsisdialogdesigner Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#115 |
Member
Join Date: Jun 2011
Posts: 52
|
custom uninstall page
I was trying to create a custom uninstall page, but I cant name it with 'un.' prefix...
After an error of saying the name is not valid, the designer change the name lilke this. PHP Code:
|
![]() |
![]() |
![]() |
#116 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
To create an uninstall dialog you just need to set the dialog "SetupType" property to "Uninstall".
After that all functions will be automatically prefixed with "un.". Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#117 |
Member
Join Date: Jun 2011
Posts: 52
|
:d
many thanks!
Last edited by shadowpoa; 4th March 2015 at 21:05. Reason: typo |
![]() |
![]() |
![]() |
#118 |
Member
Join Date: Jun 2011
Posts: 52
|
![]()
Is it possible to add a option to create some script block before nsdialogs::create?
ControlCustomScript, CerateFunctionCustomScript, FooterCustomScript, HeaderCustomScript are processed outside the block or after the create, sometimes i'll just skip the page, and doesn't need the create to be processed.. |
![]() |
![]() |
![]() |
#119 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Quote:
From your script you call fnc_XXX_Show or fnc_XXX_Create to create the dialog so, if you need to skip form creation, put an ${If} clause in your script... Maybe I'm missing something, could you please describe a real-case scenario? Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#120 |
Member
Join Date: Jun 2011
Posts: 52
|
I can... but
I can do this, but calling a "return" or "abort" for example, if I have an alternate function, I need to create a control to store the status and then do the return before the "create"...
The point is manage the code from the dialog in the dialog designer... not in hmnsisedit or something else.... With this, I could use the test to put a messagebox yes/no before the window and test it on coolsoft, and not on another IDE |
![]() |
![]() |
![]() |
|
Tags |
designer, ide, nsdialogs |
Thread Tools | Search this Thread |
Display Modes | |
|
|