What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help with a control

Help with a control
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help with a control
Its a SliderControl.

Javascript:
code:
var WM_USER = 0x0400;
var TBM_SETPOS = (WM_USER+5);
var TBM_GETPOS = WM_USER;

/*
    Used to set the current position in the slider
        > pPlusWnd is the window object saved into a variable.
            > var pPlusWnd = MsgPlus.CreateWnd('mywindow.xml', 'MyWindow');
        > sldrName is the name of the slider object
*/

pPlusWnd.SendControlMessage('sldrName', TBM_SETPOS, true, 100);

/*
    Used to set the current position in the slider
        > pPlusWnd is the window object saved into a variable.
            > var pPlusWnd = MsgPlus.CreateWnd('mywindow.xml', 'MyWindow');
        > sldrName is the name of the slider object
*/

var _currentPos = pPlusWnd.SendControlMessage('sldrQuality', TBM_GETPOS, 0, 0);

XML:
code:
<Control xsi:type="SliderControl" Id="sldrQuality">
    <Position Top="40" Width="80" Left="160" Height="13"/>
    <Attributes>
        <AutoTickMarks>True</AutoTickMarks>
    </Attributes>
    <Range>
        <Minimum>0</Minimum>
        <Maximum>100</Maximum>
    </Range>
</Control>

This post was edited on 01-13-2007 at 02:50 PM by matty.
01-13-2007 02:45 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with a control - by Dennis Mike on 01-13-2007 at 06:34 AM
RE: Help with a control - by matty on 01-13-2007 at 02:45 PM
RE: Help with a control - by Dennis Mike on 01-21-2007 at 02:01 AM


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