Archive: Create new UI


Create new UI
Hi,
how can i do to create new UI ?
Does i need to draw it on VisualBasic program ?

Thinks for your help


You should create a resource file that contains the dialogs. You can use a Resource Editor such as ResHacker or use the VC++ IDE. Are you using VB6 or VB.NET? VB6 does not use Windows Forms, so you can't use it.


Parameters about UI
Hi,
as i continue my progression on build new UI, i would like to know where i could find informations about parameters to give to all controlers needed in a UI, and how call them in my nsi file.
I don't find anything about it on the NSIS documentation.

For exemple i want to show License Page Introduction form LicenseText in a specify text area.

So, if some one have informations


The simplest way to go is to take the default UI (default.exe) and edit it using Resource Hacker, or any other resource editor. AFAIK, if you have Windows NT you can edit it with Visual C/C++ too. If you want to create it by other means you will still have to look into the default UI and take the numbers from there. You can also look into resource.h in Source\exehead, not that it tells you much ;)

Please don't create a new thread for every continuing question you have.


UI controlers information
i work on default UI using Resource Hacker.
that i would like to say on my precedent question was how to specify in nsis file each UI controlers information.

For exemple, when i look the main page, i find 3 buttons whith this information :
CONTROL "", 1, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_TABSTOP, 171, 142, 50, 14
CONTROL "", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_TABSTOP, 171, 142, 50, 14
CONTROL "", 3, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_TABSTOP, 171, 142, 50, 14

The second parameter only change.
So can i specify that button 1 is "cancel" button, button 2 is "I agree"....

Thinks for your help and sorry for my poor english.


The positions change too. The numbers that you have mentioned are the ids of the control. The easiest way is to identify the controls by their position.