screen.resolution.set (512,384)
screen.set (BACK)
pattern.display ("avo\bubble.gif")
screen.end ()
@button=button.load ("avo\button_01.btn")
button.display (@button,CENTER,CENTER,Event.Manager,PRESS_LEFT_BUTTON)
screen.set (FRONT)
%data=button.position.x.get (@button)
text.display ("The X position of the button is : " +STR (%data),CENTER,10)
screen.end ()
text.display ("Click on the button to exit.",CENTER,350)
event.wait()
procedure Event.Manager (@event,%status)
script.stop ()
end procedure