can't fint any mistakes in the following code but somehow it doesnt change the panel when the mouse touches the button and it won't make any sounds (beep();) only if I press the button p off course.
Does anyone know whats wrong?
Code:
function overbeep
{
	beep();
}

on_p = overbeep;

panel playerpan
{
	pos_x = 0;
	pos_y = 0;
	bmap = hintergrund;
	flags = visible,refresh,overlay;
	layer = 1;
	button = -15,-8,mainbtn,mainbtn,mainbtn,null,null,null;
	button = -15,-8,startbtn,startbtn,startover,overbeep,null,overbeep;
	button = -15,-50,stopbtn,stopbtn,stopover,overbeep,null,overbeep;
}

function main
{
	wait(1);
	video_window(NULL,NULL,16,"AztecMP3-Player V: 1.0");
	video_set(420,120,0,0);
	mouse_mode = 2;
	mouse_map = cursor;
		 while(1)
  {
    MOUSE_POS.X = mouse_cursor.x;
    MOUSE_POS.Y = mouse_cursor.y;
    wait(1);
  }
} 

best regards

Aztec


Visit:
schwenkschuster-design.de