- NSIS Discussion
- nxs banner - loop continuously (undeterministic bar)
Archive: nxs banner - loop continuously (undeterministic bar)
rizwanjavaid
26th June 2009 21:02 UTC
nxs banner - loop continuously (undeterministic bar)
I am using the nxs banner to display information about a task that I dont know how long it will take to complete. This banner is handy as it has progress bar and also a cancel button.
My question is, how do I hide the progress bar in the nxs dialog
OR
how do I make the progress bar undeterministic, as in, how do I make it scroll without a limit, like in XP, knight-rider style progress bar!
Apologies if this has been answered before, I have tried looking and for code but I cannot seem to find it.
Thanks
Riz
Takhir
28th June 2009 12:04 UTC
I've added 'marquee' feature to plug-in, take latest version please.
Yathosho
28th June 2009 14:09 UTC
Originally posted by Takhir
I've added 'marquee' feature to plug-in, take latest version please.
great, been looking for something like that for ages!
rizwanjavaid
28th June 2009 15:09 UTC
thanks Tahkir, worked perfectly. Just what I needed.
Yathosho
30th June 2009 19:57 UTC
i've been wondering. i'm using a nxs marquee in my onInit funciton. however, one of the included functions (i use MUI, LogicLib, WordFunc, TextFunc, FileFunc) already includes an onGUIInit function. hence, i couldn't us the suggested showwindow command (ShowWindow $HWNDPARENT 2). placing this to my first used section doesn't help either.
is there any other way to set the focus to the installer windows?
edit: that was too easy, i had to use MUI_CUSTOMFUNCTION_GUIINIT to fix it!
Takhir
30th June 2009 20:01 UTC
I am not sure, but may be this can help
!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
Yathosho
30th June 2009 20:03 UTC
thanks takhir, i should've known better. thanks anyway!
Yathosho
16th July 2009 22:51 UTC
been wondering, whenever i'm using nxs (in the oninit function) my installer runs minimized. i tried BringToFront, but it doesn't change a thing. any ideas?
Takhir
17th July 2009 12:54 UTC
What about .onGUIInit? animate.nsi sample in http://nsis.sourceforge.net/Animate_plug-in
Yathosho
17th July 2009 21:27 UTC
i tried BringToFront in onGUIInit already. i didn't use animate plugin before, cause a marquee looks more proper independently from the used windows style.
i'm aware that this hasn't much to do with the first post anymore, but i noticed a couple of more problems when using the update function. i get all sorts of text in my caption (numbers, or the word "success" - surely the remainders from different operations), but not what i specified using nxs.
Afrow UK
17th July 2009 21:29 UTC
Sounds like you have stuff on the stack which nxs is using.
Stu
Takhir
18th July 2009 06:50 UTC
I don't offer to use Animate plug-in, I just noticed that it (successfully) uses
ShowWindow $HWNDPARENT ${SW_RESTORE} ; set installer foreground
in .onGUIInit
Yathosho
18th July 2009 09:36 UTC
Originally posted by Afrow UK
Sounds like you have stuff on the stack which nxs is using.
Stu
i thought so, but how do i prevent NSISdl and the XML plugin from messing with the caption? i could easily abandon using a caption, but the problem persists with an empty caption.
@takhir: i found the solution in one of my other scripts (taken from your examples) :rolleyes: ;)
; plug-in requires this to be called in .onGUIInit
; if you use it in the .onInit function.
; If you leave it out the installer dialog will be minimized.
ShowWindow $HWNDPARENT 2