![]() |
#1 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
Custom UI Questions
i've been thinking about building my own ui for a while now, but there are a couple of things i still don't get.
1. (not exactly nsis relatated) what units are used for width and height of a control in the resource file? i'm not at my home computer now, but i remember resizing a bitmap to 74x74 and that turned out to be 300x300 pixels - though i'm not sure if it even turned out to be a square! 2. how can i add a place holder for an image and manipulate it in my script? i was hoping that MUI (header image!) would give me some clues, but so far i wasn't successful thx |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
1. the units depend on a lot of things.. from the user's DPI settings to the font (size) you specify in NSIS
2. wouldn't ${NSD_CreateBitmap} do? ${NSD_CreateButton} if you want a visible placeholder (well, I use the Button..could use anything that shows the rect of the control, really). |
![]() |
![]() |
![]() |
#3 | |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
Quote:
i was hoping it could be done using nsis code, but if mui depends on more than that, i will stay away from my idea. maybe using the reshacker commandline to add or switch an image is the easier solution. or modifying mui itself. |
|
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
yeah, that is correct - you'd be best off using ResHacker if you want it to be available on the InstFiles page
![]() |
![]() |
![]() |
![]() |
#5 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
just dug a bit deeper, seems i will go for a solution using SetBrandingImage (nice one, didn't know about this cmd)
|
![]() |
![]() |
![]() |
|
Tags |
controls, custom, interface, resourcehacker |
Thread Tools | Search this Thread |
Display Modes | |
|
|