![]() |
#121 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
I'm still missing the point, sorry.
Can't you call fnc_XXX_Create (that doesn't show the dialog) instead of fnc_XXX_Show and do all of your testing outside the .nsi file? My intent is to keep NSISDialogDesigner as much "code-free" as possible, because it's not a code editor. The code-related control properties (*CustomScript) are there to take care of very special designer related needings, not covered by the designer itself. If I missed something, please post a very simple example, maybe with pseudo-code, to explain your needings. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#122 |
Member
Join Date: Jun 2011
Posts: 52
|
Ok
I undestand that.. thanks!
|
![]() |
![]() |
![]() |
#123 |
Member
Join Date: Jun 2011
Posts: 52
|
some more few little bugs
When changing the attribute readonly on number control I found these errors...
PHP Code:
|
![]() |
![]() |
![]() |
#124 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
![]() Quote:
I've just released version 1.3.3 that fixes those bugs. You can download it from here: http://coolsoft.altervista.org/nsisdialogdesigner Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#125 |
Member
Join Date: Jun 2011
Posts: 52
|
Hi,
Another little problem: When creating hline control, nsis wants you to pop his handle from stack, but edit doesn't add the code automatically, it just creates the control but doesn't pop it. Here´s a sample. ; handle variables Var hCtl_teste2 PHP Code:
|
![]() |
![]() |
![]() |
#126 |
Member
Join Date: Jun 2011
Posts: 52
|
ChangeUI
can you add an option to specify other exe for ui than modern.exe?
I know I can change the rect in dialog id field, but not all options are supported.. as say the text below: PHP Code:
|
![]() |
![]() |
![]() |
#127 | ||
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Version 1.4.0 released
Just released version 1.4.0.
Quote:
Now fixed, thanks. Quote:
I added a new property DialogUI: when set to custom you're now free to set any DialogID and Size. DialogUI default value is "modern" (corresponding to "modern.exe"), so dialogs created with previous versions are still working. Should be great to have a list of known <DialogUIs, DialogIDs, width, height>, like: code: but it's a long task and I actually don't have the time to prepare it. If you could help... I'll add it to next version ![]() Thanks for your help. Author of NSIS Dialog Designer |
||
![]() |
![]() |
![]() |
#128 |
Member
Join Date: Jun 2011
Posts: 52
|
thanks!
I´ll be glad to help, what you need me to do?
Other small but annoyng thing, is it possible to make labels transparent on designer window? Thanks for the fast response and version... ![]() |
![]() |
![]() |
![]() |
#129 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Thanks for your offer, but this is not an easy task unless you're a C++ programmer...
You should open each available UI exe with a resource editor (or with VisualStudio, see the attached image), then find contained dialogs (but only the ones used as "containers") and extract their dialogID, width and height. Width and Height are represented in DialogUnits, so they must also be converted to pixels... Once I have these informations (in a .txt file) I could make DialogID property of the editor show only the dialogs belonging to the given DialogUI. Not an easy task, I hope I'll find some more spare time to dedicate to this. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#130 |
Member
Join Date: Jun 2011
Posts: 52
|
but...
Thinking of that, I just created the new dialogui with resource hacker, cant I just select the UI I have and the editor show the files instead of "custom" and adds to test script
PHP Code:
Sure, creating new UI´s on dialog designer would be a Cool option, but this should be good enough to test out own code... Other thing that would be cool to support is the great plugin nswindows: http://forums.winamp.com/showthread....ight=nswindows |
![]() |
![]() |
![]() |
#131 |
Member
Join Date: Jun 2011
Posts: 52
|
little bug... and suggestion.
CreateFuncionCustomScript and FooterCustomScript are inverted...
And to be more understandable fields should appear in the order that are included in the script, and not in alphabetical order. |
![]() |
![]() |
![]() |
#132 | |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Quote:
CreateFuncionCustomScript is meant con contain custom code to be added at the end of Create function, when all controls have been created. Property description (show them by right-clicking the property grid and check "Descriptions") says "NSIS script you want to append to the *Create function of generated .nsdinc script". FooterCustomScript is custom code added at the end of the .nsdinc file. As for the properties ordering, that's out of my control. PropertyGrid is a .NET Framework component and properties are self read by that component through reflection... VisualStudio has the same... issue. Author of NSIS Dialog Designer |
|
![]() |
![]() |
![]() |
#133 | |
Member
Join Date: Jun 2011
Posts: 52
|
my mistake!
sorry... dont have read the description "CreateFuncionCustomScript" sends me to "create a function" that is done by "FooterCustomScript
Quote:
and on the suggestion of ChangeUI? |
|
![]() |
![]() |
![]() |
#134 |
Member
Join Date: Jun 2011
Posts: 52
|
New little bug:
when saving an archive with another name, titlebar doesn't update, making difficult to have sure of what archive is being written... In print attached I "saved as" from "tela_lalala.nsdef" to "tela_uninst.nsdef", but the name have been updated only in tab... See attachment... Thanks!! |
![]() |
![]() |
![]() |
#135 |
Member
Join Date: Jun 2011
Posts: 52
|
Just one Label RTL
After some testing, I figured out that Ex Style for just one label RTL is ${WS_EX_LAYOUTRTL} not ${WS_EX_RTLREADING}.. please fix or add this stype, its already included on nsdialogs.nsh by default.
Here some reference... https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx for me, just add WS_EX_LAYOUTRTL did the trick... below and example. PHP Code:
Last edited by shadowpoa; 23rd March 2015 at 19:32. Reason: add example and additional info |
![]() |
![]() |
![]() |
#136 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Still working on it, but actually I'm a bit... out of spare time
![]() Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#137 |
Member
Join Date: Jun 2011
Posts: 52
|
:d
do not worry, just asked to know ...
|
![]() |
![]() |
![]() |
#138 |
Member
Join Date: Jun 2011
Posts: 52
|
Hi,
I am doing some cleanup in my code, i have noticed the code below: PHP Code:
Using like this, a memory leak, NSIS will put on the top of stack the dialog's Handle.. Using like this the problem is not shown anymore: PHP Code:
Here's the doc: http://nsis.sourceforge.net/Docs/nsD...html#step-show Correct If I am wrong... thanks! |
![]() |
![]() |
![]() |
#139 |
Member
Join Date: Jun 2011
Posts: 52
|
If I use !include on HeaderCustomScript it gets ommited from generated script, but it appears on below panel...
See prints to better understand.. print1.jpg - script opened with hm nsis editor print2.jpg - script being visualized on coolsoft editor. Thanks! |
![]() |
![]() |
![]() |
#140 |
Member
Join Date: Jun 2011
Posts: 52
|
Other little thing
for vline and hline we can have it visible true or false... but cant do it on designer...
thanks! |
![]() |
![]() |
![]() |
#141 |
Member
|
It there anything I can do that is similar to an "OnLoad" function, unless I am just missing the fact that I can do it already...
Once the form becomes visible, I would like it to go ahead an start kicking off a particular function, not requiring user interaction. If I try to do it in the ControlCustomScript, it has to wait for that execution to finish before it loads/shows the dialog, and the function may take a few minutes to execute. Not to mention, I would like that function to be able to report status back to the dialog and it has to exist first... Thanks... |
![]() |
![]() |
![]() |
#142 |
Senior Member
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
|
This doesn't belong in the Dialog Designer thread. You can use a timer:
Function PageCreatorFunction ; ... ${NSD_CreateTimer} BgStuff 1 nsDialogs::Show FunctionEnd Function BgStuff ${NSD_KillTimer} BgStuff ; do your stuff here FunctionEnd PostEnd: |
![]() |
![]() |
![]() |
#143 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Version 1.4.1 released
v.1.4.1 - 2015-09-07
Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#144 |
Junior Member
Join Date: Aug 2014
Posts: 44
|
Can't get a "post" function to be called...
Hi,
First off, thanks for this great tool! It saved a lot of time for me. I do have one "small" issue with it. I am trying to add a "post" function to the page that gets the values from the elements selected / entered in the function created by the designer: code: Problem is, the fnc_Remote_Installer_Leave function is never called. The dialog is displayed, the "Install" button is there but when I click it, the installation just "completes". Nothing is written with DetailPrint. Any ideas what I'm doing wrong? Thanks! |
![]() |
![]() |
![]() |
#145 |
Junior Member
Join Date: Aug 2014
Posts: 44
|
OMG, too early in the morning. I just realized I had actually put the DetailPrint in the "post" instead of in the section.
Never mind me... Once more, really great tool! Thanks! |
![]() |
![]() |
![]() |
#146 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
Glad you sorted it out by yourself
![]() Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#147 |
Senior Member
Join Date: Oct 2014
Location: $DESKTOP
Posts: 108
|
Thanks Nicorac!. Always keep it working!.
|
![]() |
![]() |
![]() |
#148 |
Junior Member
Join Date: Apr 2016
Posts: 8
|
Can I edit mui2 pages with NSI Dialog Designer?
|
![]() |
![]() |
![]() |
#149 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
NSIS Dialog Designer only generates new .nsi files to be included in your existing NSIS script.
It manages 2 kinds of file: .nsddef which is an XML style dialog definition (used by NSIS Dialog Designer) and a .nsdinc file which is a plain NSIS script to be included in existing scripts (output only, can only be edited with its source .nsddef). It cannot import existing files, sorry; you have to start your dialogs from scratch. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#150 |
Junior Member
Join Date: Apr 2016
Posts: 8
|
Thanks for fast replay, well, i soppose i'd have to start from scratch(sorry for my bad english). Again, thanks.
|
![]() |
![]() |
![]() |
#151 |
Junior Member
Join Date: Jul 2017
Posts: 21
|
Dialog Units
I used the InstallOptions plugin and got dimensions in an initial file as follows.
Content of INI file: [settings] numfields=4 State=0 [field 1] type=groupbox left=0 right=-1 top=10 bottom=-11 text=Select Application and Version HWND=331822 [field 2] type=label left=40 right=-40 top=30 bottom=50 text="Application" HWND=266368 [field 3] type=droplist left=40 right=-40 top=50 bottom=60 Listitems=Select Application|1|2|3|4 state="1" HWND=462816 [field 4] type=label left=40 right=-40 top=70 bottom=80 text="Version" HWND=200754 [field 4] type=droplist text="Version" left=40 right=-40 top=100 bottom=120 Listitems=A|B|C\D state="A" HWND=2690908 I then attempted to use the "CoolSoft NSIS Dialog Designer" version 1.4.2.0 and set units to "DialogUnits" at the top and everything else to "Inherit". The problem is that the designer does not appear to understand "InstallOptions plugin" and it creates a template using "nsDialogs". I have no way to translate or adjust dimensions to work in my NSI project file. Is there a way to get the designer to adjust dimensions to something I can use or must I use "nsDialogs"? What am I missing? |
![]() |
![]() |
![]() |
#152 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
NSISDialogDesigner does not generate InstallOptions INI-style files.
It is meant to generate an include script in nsDialogs format only, sorry. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#153 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
v.1.4.4 - 2019-08-01
FIX: Removed decimals from control coordinates in generated NSIS script. New version can be found here. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#154 |
NSIS Dialog Designer Author
Join Date: Apr 2011
Posts: 71
|
v.1.5.0 - 2020-03-22
NEW: Script file encoding now defaults to UTF8; a new Dialog property allows to force encoding back to ANSI. New version can be found here. Author of NSIS Dialog Designer |
![]() |
![]() |
![]() |
#155 | |
Member
Join Date: May 2007
Location: Orange County, CA, U.S.A.
Posts: 73
|
Quote:
Cancel: code: Next: code: Back: code: |
|
![]() |
![]() |
![]() |
#156 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
The 0x408 message changes the page.
This sends the button commands: Quote:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
|
Tags |
designer, ide, nsdialogs |
Thread Tools | Search this Thread |
Display Modes | |
|
|