Skip to content
⌘ NSIS Forum Archive

CreateBitmap without using NsDialogs

6 posts

Alfaromeo#

CreateBitmap without using NsDialogs

I'm not using a custom dialog generated by nsDialogs. I know we can create a bitmap using the NSDialogs , hence the question on how to display a bitmap on an existing MUI dialog .
MSG#
You can modify the mui page either through editing the appropriate nsh file (compile time) or calling the appropriate (nsDialogs) functions in the page's show function (run time).
Alfaromeo#
Thanks MSG for the reply.
However not able to display with the NSD function.
I need to show a bitmap image on the install files dialog. Hence as mentioned by you created a custom functon that gets called in the show of the install files page.
In the function I use
NSD_CreateBitmap and NSD_SetImage but to no avail.
The same function works on a NSD dialog if generated.
Animaether#
for the internal pages, you'll have to edit the UI file with e.g. reshacker to add a bitmap control that you can then manipulate.

Example:


You can probably just take the modified UI file from there, move it to another position by code if you need to, and set the bitmap using NSD - all the other code on that page for changing the bitmap wouldn't be needed.
Afrow UK#
Easiest thing to do is use Resource Hacker as Animaether suggests but it is possible using the System plug-in (which is partly what the nsDialogs macros use):


Stu