Sasuke: cool. it works. Greate

i got added now hidden button at 64 to 128 at x& y (youst quick&dirty
so now when i click next or prew and the click hiden button it shows text what number i had selected correctly
1 litle thing: id detects left right and scroll click. how can i get it to youst react to left click?
code
Rem Credits:Sasuke TGC Forum
// store values
buttonSize = 64
prevButImg = 1
nextButImg = 2
currentTrack = 1
firstTrack = 1
lastTrack = 8
// create buttons
cls rgb(255,0,0)
center text buttonSize/2,(buttonSize/2)-(text size()/2),"<=="
get image prevButImg,0,0,buttonSize,buttonSize,1
cls rgb(255,0,0)
center text buttonSize/2,(buttonSize/2)-(text size()/2),"==>"
get image nextButImg,0,0,buttonSize,buttonSize,1
// work out where the centre of the screen is just for our buttons
sx = screen width()/2 : sy = screen height()/2
// store positions for our buttons, these being from their left-top most corner
prevX = sx-(2*buttonSize) : prevY = sy-(.5*buttonSize)
nextX = sx+buttonSize : nextY = prevY
do : cls
// store mouse data
_mouseX = mousex()
_mouseY = mousey()
_oldMouseClick = _mouseClick
_mouseClick = mouseclick()
// check to see if the mouse is over the Previous button
if _mouseX > prevX and _mouseY > prevY
if _mouseX < prevX+buttonSize and _mouseY < prevY+buttonSize
// if there's a mouseclick, -1 currentTrack and check if it's less than
// the min tracks, if it is wrap it to the last Track
if _mouseClick <> 0 and _oldMouseClick = 0
dec currentTrack
if currentTrack < firstTrack then currentTrack = lastTrack
endif
endif
endif
// the same as above just positively
if _mouseX > nextX and _mouseY > nextY
if _mouseX < nextX+buttonSize and _mouseY < nextY+buttonSize
if _mouseClick <> 0 and _oldMouseClick = 0
inc currentTrack
if currentTrack > lastTrack then currentTrack = firstTrack
endif
endif
endif
// Race Track
if _mouseX >64 and _mouseY < 128
if _mouseX >64 and _mouseY < 128
if _mouseClick <> 0 and _oldMouseClick = 0
goto Tracks
endif
endif
endif
// finally draw everything at the end, usual practice
paste image prevButImg,prevX,prevY
paste image nextButImg,nextX,nextY
center text sx,sy,str$(currentTrack)
loop
Tracks:
Sync
cls
Set cursor 0,0
Print "Loading Track: ",currentTrack
wait key
end
Thank you werry Mutch
ps. i must admit. think i have taken too big bite sort of or to hard project maby.but am locked to get it working without quitting

i say this cuz. while back i have made a simple 3D car game/driving but it whas in db classic and track selecting there whas extremly simple. it had track list on left side and when mouse whas ower a track text changed colour and if pressed it had a goto command for loading so.
and now after long breake from dbpro i have tested from time to time but not done enny project`s youst testing simple commands to see if i get working. and this project. i did think it shudnt be to hard since menu is based from Need for Speed 2 or 2se
i know the driving will be hard but. i had project while back about Need for Speed 3 but i started from different dirrection i started with on how to recreate the tracks

btw i cheked your old 2010 tread about menu. and i had made same fault as you stated peopeles alott does (about the mouse click)XD Greate Tread& i cheked your youtube video about curve editor. impressive
**StigDesign** cheap 3D Modell Pack`s And Music at www.StigDesign.com
soon other aplication`s Software`s Game`s