If you have the d3d plugin then unremark then d3d commands
function Make2dBox(x,y,width,height,r,g,b)
rem if using d3d 2d
` d3d_color r/4,g/4,b/4,200
` d3d_box x,y,x+width,y+height
` d3d_color r,g,b,200
` d3d_box x+1,y+1,x+width-1,y+height-1
rem if using dbpro 2d
` ink rgb(r/4,g/4,b/4),1
` box x,y,x+width,y+height
` ink rgb(r,g,b),1
` box x+1,y+1,x+width-1,y+height-1
endfunction