Archive: NSIS InstallOptions Coordinates System Confusion


NSIS InstallOptions Coordinates System Confusion
Hello,
i try to create a custom installer page with installoptions.

The problem is that the coordinates system is totally confusing and erroneous.

I set Left=0 and the control gets somewhat in the middle.

Also the coordinates system is not in pixels but in something else ? What ?

How am i going to find the correct coordinates for the controls ?

Don't tell me to create a Resource File in Visual Studio and then use Resource Hacker because i tried it and only did get many errors in Resource Hacker when i tried to open the resource file.


I'm not entirely sure, but I would guess that InstallOptions sizes are set in dialog units. The readme should have some info on that.

But I strongly recommend using nsDialogs instead of InstallOptions (with MUI2 instead of MUI). It's a lot more versatile, and it supports dialog units, percentages and pixels as size units.


Thanks, i found a cool NSIS editor called HM NIS Edit and it has an InstallOptions Page Designer so i can now design my page graphically !


There is a newer dialog designer for nsDialogs: http://forums.winamp.com/showthread.php?t=329801

Stu


Dialog units are pretty common and are used by Windows dialog resources embedded in programs. They scale based on the font size. Resource Hacker also uses dialog units so you could use that as the designer if you really wanted to (there are several NSIS specific dialog tools out there also)

http://msdn.microsoft.com/en-us/libr...#sizingspacing