For a control panel I have never tried the sprite commands and I don't think it would work anyway like that, try just using images instead like for example:
This code was written from head, I haven't used DBP for a while and don't have it installed at the moment
cls
sync on
sync rate 60
`Load the unselected button image
load image "unsel.bmp",1
'Load the selected button image
load image "sel.bmp",2
`Load the clicked button image
load image "click.bmp",3
do
`I Can't remember the code for mouse position, but I'm gonna take a guess to how it would be obvious to me
`But try this anyway, its to store the position in variables
x# = mouse position x()
y# = mouse position y()
`This will automatically paste the first image, where it is unselected, theoretically
`(Bearing in mind I cannot syntax the code) once the mouse is in the area it will no longer be seen
paste image 1,0,0
`to get the position of the mouse being inside of the range of the button area
`this assumes that the image is 200 x 50
`Once the mouse cursor is with that said area then the image will
`paste itself in the correct position, clearing the 2D data before hand
if x# > 0 and x# < 200 and y# > 0 and y#< 50 then cls : paste image 2,0,0
`In the case that the user clicks on the button
if x# > 0 and x# < 200 and y# > 0 and y#< 50 and mouseclick() = 1 then cls : paste image 3,0,0
sync
loop
If that don't work, follow the principles I have given there, and try to correct any bad coding of mine
夢の海に目覚めること - Into the sea of waking dreams - I am by John Clare