Shoutbox

Help with a control - 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: Help with a control (/showthread.php?tid=70627)

Help with a control by Dennis Mike on 01-13-2007 at 06:34 AM

need the name de this control [Image: control.jpg]
y need know everything of the it. from atributes even get value
thank's


RE: Help with a control by matty on 01-13-2007 at 02:45 PM

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>

RE: Help with a control by Dennis Mike on 01-21-2007 at 02:01 AM

how detect if move the slider control?