What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Dynamic Range

[?] Dynamic Range
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. [?] Dynamic Range
I'm trying to make a progress bar, but I need the maximum range value to update every now and then, without re-writing the XML file and preferably without closing the window at all. I'm assuming there must be some sort of API to take care of this?
<Eljay> "Problems encountered: shit blew up" :zippy:
05-23-2008 02:57 AM
Profile PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: [?] Dynamic Range
A cheaper (and simpler) work-around: just make the max value a large number and change the incremental amounts :p I believe that's what most applications of progress bars do anyway

This post was edited on 05-23-2008 at 03:21 AM by Volv.
05-23-2008 03:20 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Dynamic Range
It'll take a lot of "calculating" though :( lol
<Eljay> "Problems encountered: shit blew up" :zippy:
05-23-2008 04:21 AM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] Dynamic Range
quote:
Originally posted by SpunkyLoveMuff
I'm trying to make a progress bar, but I need the maximum range value to update every now and then, without re-writing the XML file and preferably without closing the window at all. I'm assuming there must be some sort of API to take care of this?
Yes, you can do it by sending some messages to your Progressbar control  ;)

quote:
Originally posted by Progress Bar Control Reference @ MSDN
PBM_SETRANGE Message
Sets the minimum and maximum values for a progress bar and redraws the bar to reflect the new range.

PBM_SETPOS Message
Sets the current position for a progress bar and redraws the bar to reflect the new position.

code:
var PBM_SETRANGE    = 0x0401;
var PBM_SETPOS          = 0x0402;
code:
var _min = 0;
var _max = 100;
PlusWnd.SendControlMessage("Your_Progressbar", PBM_SETRANGE, 0, (_min & 0xFFFF) | ((_max & 0xFFFF) << 16));
code:
var _newposition = 50;
PlusWnd.SendControlMessage("Your_Progressbar", PBM_SETPOS, _newposition, 0);


* see also: Progress Bar Control Reference
05-23-2008 04:54 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On