Archive: nxs banner - loop continuously (undeterministic bar)


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


I've added 'marquee' feature to plug-in, take latest version please.


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!

thanks Tahkir, worked perfectly. Just what I needed.


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!


I am not sure, but may be this can help

!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit

thanks takhir, i should've known better. thanks anyway!


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?


What about .onGUIInit? animate.nsi sample in http://nsis.sourceforge.net/Animate_plug-in


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.


Sounds like you have stuff on the stack which nxs is using.

Stu


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

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