yankeyj
2nd March 2004 21:11 UTC
Move window to corner
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/...php?pageid=397
thanks
:eek:
Vytautas
2nd March 2004 22:17 UTC
You should call this function from the GUIINIT function of the installer.
Vytautas
yankeyj
3rd March 2004 11:35 UTC
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 11:39 UTC
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 12:16 UTC
Thanks works great!
hackthanh
8th July 2009 05:02 UTC
Pls give me the code to move the window
Thx
hackthanh
8th July 2009 10:13 UTC
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