The Glimmerman
23rd February 2007 10:39 UTC
Custom Pages different size
Hi all,
I've a question.
I'm using three different custom pages. I altered the ui (105) for one of my custom page. But my 2 other pages do not need the big size of the UI window.
How can I , if its even possible, use three different ui window sizes?
Hope that someone has the answer.
thx
Backland
23rd February 2007 11:55 UTC
I dont think you can have multiple versions of the 105 UI resource, but if you know the required size for the window, you can store that in your script and dynamically resize the installer window with the SetWindowPos API call.
You will probably need to reposition the back/next/etc button as well.
kichik
23rd February 2007 12:03 UTC
Create another RECT just like 1018 in any size you want. Then, in [Settings], use Rect=<the new id>. The MUI does that, so you have an example in Contrib\UIs\modern.exe and Contrib\Modern UI\System.nsh.
The Glimmerman
23rd February 2007 14:15 UTC
@ kichik
What do you mean by 1018. If I open modern.exe I see dialog 105 and 1033.
I copied dialog 105 to 1051 and changed size.
Then in my custom.ini added rect=1051. Build the installer and a no go. It doesn't show any dialog.
What did I wrong.
kichik
23rd February 2007 14:19 UTC
In dialog 105 there's a RECT named 1018.
The Glimmerman
23rd February 2007 14:43 UTC
Thx kichik.
I've got it to work. But that's not what I meant.
I want the complete dialog to resize and not the inner rectangle. Is it possible?
kichik
23rd February 2007 14:50 UTC
No, that's not possible. Well, at least not without some API magic as Backland suggested.
The Glimmerman
23rd February 2007 15:55 UTC
Thx for your help kichik.
I will look into it.