Skip to content
⌘ NSIS Forum Archive

Change top bitmap in modern ui

43 posts

DOCa Cola#

Change top bitmap in modern ui

Hi

is there a way to change the white bar (with the installer icon) on the top of the modern ui installers to a bitmap like in some installshield setups?

DOCa Cola

Joost Verburg#
Modern UI 1.63 with header bitmap support and some other new features is ready.

I can't upload it now, because a stupid router somewhere is dead so I can't connect to SourceForge 🙁
Joost Verburg#
Here is a screenshot. Still can't upload 🙁
Joost Verburg#
It's not possible to put an image behind the text, but you can put the bitmap on the left or right side.
Joost Verburg#
The header bitmap has a fixed size. With the default DPI, it has a width of 150 pixels, so the text does fit next to the image.

You can either put the image on the left size (text will be moved a bit to the right side) or on the right side.
DOCa Cola#
wouldn't it be better if the header bitmap can be used this way?
!define MUI_HEADERBITMAP "${NSISDIR}\Contrib\Icons\modern-header.bmp"
!define MUI_UI "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"
Joost Verburg#
You don't have to define MUI_UI. The headerbitmap UI is an extension which will be used automatically.
Joost Verburg#edited
I'll add an option to use a customized header UI with dialog IDD_INST.

edit: Done 🙂
Joost Verburg#
!define MUI_UI "normal ui"
!define MUI_UI_HEADERBITMAP "ui with custom IDD_INST resource"
deguix#
!define MUI_UI_HEADERBITMAP_RIGHT "ui with custom IDD_INST resource"

Use this if you want to use the header bitmap in the right.

(if you edited with the ${NSISDIR}\Contrib\UIs\modern-headerbmpr.exe")

[edit]And how about a option to allow use the icon and the bitmap at same time (and put the icon on the bitmap)?[/edit]
DOCa Cola#
I know there i a way to make the background of a text label transparent (this is possible in visual basic and is also used in install shield).
if the bitmap in the dialog ressource is then arranged to be behind the two text labels then we can use bitmaps with the full width of the header and they do not cover the text labels anymore
Joost Verburg#
NSIS does not support transparent labels.

This would be a nice feature for the future, but you would also need a possibility to resize the dialog control.

I think this won't be ready anytime soon, there is still a lot of stuff on the TODO list.
Mosestycoon#
Great thing

Well, well, well
Great enhancement Major Dude!
😁 Thx again (make things look smoother...)
DOCa Cola#
Originally posted by Joost Verburg
This would be a nice feature for the future, but you would also need a possibility to resize the dialog control.
Sorry, which dialog control?