Skip to content
⌘ NSIS Forum Archive

Small but useful(?) change to BgImage

9 posts

iceman_k#

Small but useful(?) change to BgImage

I have made a small modification to BgImage so that it optionally displays the installer name in the top left corner of the image. The text color can also be set if desired.
I don't know if this is useful to anyone else, but I needed it for my installer.
The modified source is attached.
If it is considered useful to others, feel free to incorporate into the main source tree.
---
iceman_k
iceman_k#
Modified it to specify any text you like.
Usage:

BgImage::Init /NOUNLOAD [/FILLSCREEN ] path_to_bitmap [/TEXT "sometext"] [/TEXTCOLOR hexvalue]

BgImage::SetImage /NOUNLOAD [/FILLSCREEN ] path_to_bitmap [/TEXT "sometext"] [/TEXTCOLOR hexvalue]

The hex value is in RGB format without the leading "#", e.g., FFFFFF

---
Iceman_K
iceman_k#
Here is the compiled version.
The irritating 1 pixel border problem is still there.
---
Iceman_K
DOCa Cola#
Thx!

Originally posted by iceman_k
The irritating 1 pixel border problem is still there.
Yep, this problem is really annoying

DOCa Cola
iceman_k#
Removed libc dependency. Smaller dll.
---
Iceman_K
kichik#
BgImage is currently being worked on. This feature will be included too. Thank you for your patch.