matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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.
|
|