PDA

View Full Version : Move window to corner


yankeyj
2nd March 2004, 20:11
I don't know how to use this function to move the welcome page etc to the corner, I tried in my main default section but no!!

call repositionwindow ; --> reposition install window to corner of screen

Found in the archive -
http://nsis.sourceforge.net/archive/viewpage.php?pageid=397

thanks

:eek:

Vytautas
2nd March 2004, 21:17
You should call this function from the GUIINIT function of the installer.

Vytautas

yankeyj
3rd March 2004, 10:35
It works fine if I am not using MUI, most especially the macro

!insertmacro MUI_LANGUAGE "English"

I went into C:\Program Files\NSIS\Contrib\Modern UI\Language files and edited the english.nsh file. I commented out the first line, it compiles fine but I have no welcome page!!

It appears .onGUIINIT has been defined somewhere else! and if I include it in my script it tells me already defined
thanks

Vytautas
3rd March 2004, 10:39
When using MUI you shold not use the .onGUIINIT. This code should work: !define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit

Function myGUIInit
...your own code...
FunctionEnd

Vytautas ;)

yankeyj
3rd March 2004, 11:16
Thanks works great!

hackthanh
8th July 2009, 04:02
Pls give me the code to move the window
Thx

hackthanh
8th July 2009, 09:13
I use Nsdialog and WANSIS to write custom Page.
And BOTH nsdialogs.nsh and System.nsh define some flag Already, so I rem define in System.nsh.

And when i use repostionWindow, it move part inside Dialog and Border of Dialog is old position (pls see atachment).
How can i handle it?
I think the Function RepositionWindow get wrong HandleWindow

Thank for reading