Shoutbox

ProgressBar Marquee - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: ProgressBar Marquee (/showthread.php?tid=62369)

ProgressBar Marquee by FineWolf on 07-02-2006 at 10:58 PM

I'm working on a script that does lengthy instructions on first run (sets up an encryption scheme and everything). Right now I'm trying to use a progress bar in Marquee mode to show the user the script is still working, but... starting the animation on the bar gets tricky.

Control:

code:
<Control xsi:type="ProgressControl" Id="ProgressBar">
    <Position Top="92" Width="280" Left="23" Height="15"/>
    <Marquee/>
</Control>

Code (After window creation):
code:
var WM_USER = 0x400;
var PBM_SETMARQUEE = WM_USER + 10;

var api_response = WizardWindow.SendControlMessage("ProgressBar", PBM_SETMARQUEE, 1, 250);

api_response always returns 1, indicating that the animation should be working,  but it doesn't. Any ideas?
RE: ProgressBar Marquee by deAd on 07-02-2006 at 11:00 PM

After pasting the XML in, the progress bar does a marquee by itself. No code is required. EDIT: it works fine with the code too ;)


RE: RE: ProgressBar Marquee by FineWolf on 07-02-2006 at 11:02 PM

quote:
Originally posted by deAd
After pasting the XML in, the progress bar does a marquee by itself. No code is required. EDIT: it works fine with the code too ;)


Doesn't here. It is because the bar is in a childWindow?

Edit: Nevermind, Visual Style problem, totally unrelated to Messenger Plus! At least people know how to speed up the animation now... Or stop it when not needed.