The Glimmerman
26th February 2007 15:35 UTC
SetWindowPos API call.
I've got 2 Questions
I'm using the SetWindowPos API call.
My first custom page must use a smaller UI
This is the code
System
::Call "User32::SetWindowPos(i, i, i, i, i, i, i) b ($HWNDPARENT, 0, 0, 0, 510, 230, ${SWP_NOZORDER}|${SWP_NOMOVE})"
When changing the size my buttons are no longer there.
How do I reposition the back/next/etc button.
My second question is.
When using the code above how do I go back using the default, because exiting the first custom page to the second custompage (which has the defaultsize) it uses the same size as my first page.
Thx in advance
The Glimmerman
27th February 2007 08:22 UTC
nobody ? :(
Red Wine
27th February 2007 09:21 UTC
I'm afraid you should either wait for kichik here in forum or try to contact Anders at NSIS IRC channel,
irc://irc.cockos.com/nsis
The Glimmerman
27th February 2007 15:38 UTC
OK
I'll be patient :)
Joel
27th February 2007 17:06 UTC
Maybe I can help you in the 2nd, try to use the hole findwindow code, you know:
pseudo code
FindWindow$0 "class" "" $HWNDPARENT
>
kichik
27th February 2007 19:52 UTC
What's the `b` type? SetWindowPos returns a BOOL which is actually an integer, so `i` should be used.
The Glimmerman
28th February 2007 09:30 UTC
I found the api call on a wiki page. And they useb 'b'.
I changed 'b' to 'i' but it does its work the same. :)
But do you know how to change the location of the next and cancel buttons. I use installoptionsex with MUI.
kichik
1st March 2007 19:53 UTC
Forget about SetWindowPos if you want to change the entire UI. Use Resource Hacker to edit Contrib\UIs\modern.exe, save a copy and use MUI_UI to tell the MUI to use your new UI.