Try this hope it help
sync on
dim Clicked(1)
do
zone(1,0,10,"button 1")
zone(2,60,10,"button 2")
zone(3,120,10,"button 3")
zone(4,180,10,"button 4")
zone(5,240,10,"button 5")
zone(6,300,10,"button 6")
ink rgb(0,0,0),1
box 400,10,550,30
ink rgb(250,250,250),1
x=mousex():y=mousey()
if Clicked(1)>0 then text 420,10,"You Click Button "+str$(Clicked(1))
sync
loop
`........................................MOUSE ZONE..............
FUNCTION ZONE(zonenum,x1,y1,zone$)
if zonenum<6 then ops=zonenum
backdrop off
sync rate 1000
ink rgb(120,120,120),1
box x1,y1,x1+text width(zone$)+4,y1+text height(zone$)+5
ink rgb(190,190,190),1
box x1+1,y1+1,x1+text width(zone$)+3,y1+text height(zone$)+4
ink rgb(0,0,0),1
text x1+3,y1+2,zone$
ink rgb(190,190,190),1
clicked=0
if mousex()>x1 and mousex()<x1+text width(zone$)+5
if mousey()>y1 and mousey()<y1+text height(zone$)+5
if mouseclick()=1
clicked=zonenum
Clicked(1)=zonenum
if zonenum<6 then Clicked(0)=zonenum
ink rgb(160,160,160),1
box x1+2,y1+2,x1+text width(zone$)+2,y1+text height(zone$)+3
ink rgb(115,115,115),1
line x1+2,y1+1,x1+text width(zone$)+2,y1+1
line x1+text width(zone$)+3,y1+1,x1+text width(zone$)+3,y1+text height(zone$)+3
ink rgb(0,0,0),1
text x1+3,y1+2,zone$
ink rgb(190,190,190),1
endif
endif
endif
ENDFUNCTION