Hi! And once again im stuck and need help

Well, i have a Options.window there i placed a button "music" and a static control "musicvolume".
The button has a script attached:
var IsLeftDown;
on "LeftClick"
{
IsLeftDown = true;
var dx=
Game.
MouseX-
this.
X;
while(IsLeftDown==true)
{
//while we holding a left mouse button move the "music" after mouse cursor
//a border
if (this.
X<
120) this.
X=
120;
else
if (this.
X>
390) this.
X=
390;
//set volume 1-100 %
RefreshVolume
(ToInt(Math.
Floor((this.
X-120)/
270*
100)));
//refresh text on static control "musicvolume"
setstate();
}
}
on "LeftRelease"
{
IsLeftDown = false;
}
function RefreshVolume(var volume)
{
muse.channelVolSet(0,volume);
}
function setstate()
{
buttontext.
Text = muse.
channelVolGet(0);
}
And i got an error "Call to undefined method 'GetControl'. Ignored." because the button doesn't have method .GetControl.
So. How can i fix the text refreshment while we holding a mouse button?