Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Radio buttons

Author
Message
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 29th Jun 2003 14:44
hello everyone!
i'm just designing this menu, i was going nicely with it untill i came to a part that i needed a radio button or something similar to it, so how could i make an active good looking radio button with an example if u dont mind.
thankx alot! [b])
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 29th Jun 2003 15:07
Draw two sets of buttons - one selected and one not, for each option.

Treating them as sprites, you wait until there is a click over one.

If its already highlighted, then you leave it alone.
If its not already highlighted, then highlight it and unhighlight all the others.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 30th Jun 2003 04:54
hello!
now that i've made a radio button, how can i activate it, i know how to make it highlight by the mouse or keyboard, but when i select it, how does it stay highlighted?
thankx

ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 30th Jun 2003 10:43
you could use a variable so if highlight=1 then keep radio button highlighted

hi guys
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 30th Jun 2003 17:42
can i have an example or a working code if u dont mind? i'm still a rookie at this stuff
thankx

Login to post a reply

Server time is: 2025-05-19 03:48:45
Your offset time is: 2025-05-19 03:48:45