Hi All
I am trying to make a on screen menu that as 18 choices of which you can only have one choice but can change your mind and pick another one if you wish.
Code I am using came from code base but only allows you to check one box at a time or all at the same time.
if cb<>1 or cb1<>1
cb = check_box(100,100,"320 x 200",RGB(0,0,0) ,cb)
cb1 = check_box(100,120,"320 x 240",RGB(0,0,0) ,cb1)
`
endif
function check_box(x as integer,y as integer, info as string, text_color as dword,valeur)
size = text height("|")
box x+1,y+1,x+size,y+size,rgb(128,128,128),rgb(196,196,196),rgb(128,128,128),rgb(196,196,196)
ink rgb(0,0,0),0
line x,y,x+size,y
line x+size,y,x+size,y+size
line x+size,y+size,x,y+size
line x,y,x,y+size
if valeur > 0
for t=0 to size/4
line x+t,y,x+size-t,y+size
line x,y+t,x+size,y+size-t
line x+size,y+t,x,y+size-t
line x+size-t,y,x+t,y+size
next t
endif
ink text_color,0
text x+size+5,y,info
if mousex()>x and mousex()<x+size
if mousey()>y and mousey()<y+size
if mouseclick()=1
repeat:until mouseclick()=0
if mousex()>x and mousex()<x+size
if mousey()>y and mousex()<y+size
if valeur >0 then valeur = 0 else valeur = 1
endif
endif
endif
endif
endif
endfunction valeur
its not all the code I use to get it going, but as you can see it can only return answer 0 or 1.
So to repeat how would I turn this in to radio buttons.
In Space No One can Hear You Scream! (When your comm Line is cut?)