- NSIS Discussion
- Please add an option for showing a 48x48 icon
Archive: Please add an option for showing a 48x48 icon
Ippi
15th November 2008 12:52 UTC
Please add an option for showing a 48x48 icon
The default 32x32 icon looks too small in the installer UI header, which is 57 pixel high even at a standard 96 DPI resolution. So it would be nice to have an option to use a larger icon size (something like "IconSize 48" or "IconSize big"). As I understand, implementing this feature requires just removing the LR_DEFAULTSIZE and setting cxDesired and cyDesired to the requested value in the LoadImage call in exehead/ui.c?
Yathosho
15th November 2008 13:35 UTC
what's wrong with using this as headerimage? otherwise you could still reshack the ui to fit your requirements.
Ippi
15th November 2008 14:11 UTC
Originally posted by Yathosho
what's wrong with using this as headerimage? otherwise you could still reshack the ui to fit your requirements.
What's wrong with using my own icon which is already embedded in my installer? It includes image sizes up to 256x256, but installer ignores them.
Yathosho
15th November 2008 16:52 UTC
ok, the solution is the same :)
Ippi
15th November 2008 17:38 UTC
Originally posted by Yathosho
ok, the solution is the same :)
Adding a redundant copy of the same image is rather a workaround, not a solution.
Ippi
18th November 2008 09:35 UTC
Developers, anyone? Does the "big icon" option deserve attention? If you think it doesn't - ok, we'll have to stick with an extra header image (or even with two extra images - the second one is for RTL layout).
kichik
18th November 2008 18:01 UTC
That LoadImage you found is not the one responsible for bringing the icon to the dialog. The dialog template resource defines an ICON control and specifies the icon. I don't know of any flag for that control that tells it to load a bigger icon. If I remember correctly, it takes the first icon, so you might want to try and reorder the icons in your icon file.
Ippi
18th November 2008 20:54 UTC
No, reordering the images and moving all the 48x48 ones to the beginning did not change anything.
The STM_SETICON message should do the trick with changing the icon in the icon control.
kichik
18th November 2008 21:08 UTC
Then you can do so in .onGUIInit with a slightly modified version of NSD_SetImage from nsDialogs.nsh.
Ippi
18th November 2008 21:44 UTC
Originally posted by kichik
Then you can do so in .onGUIInit with a slightly modified version of NSD_SetImage from nsDialogs.nsh.
Ok, thanks, I'll try this approach.