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 / Check Box

Author
Message
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 29th Apr 2004 17:02
Has anyone used a checkbox before? I have it set up already to where it changes if you click on it, but with the quick sync rate, it checks twice, resulting in a check, then an uncheck (with one click). I cant slow the sync rate down. Though the check box works if I do.
Any ideas?

BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Apr 2004 20:14
Your code needs to check for a mouse button release before checking for any subsequent clicks. That is, do nothing until the mouse button is no longer clicked.

BatVink
http://facepaint.me.uk/catalog/default.php AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 30th Apr 2004 01:38
An example of code for BatVink's meathod would be...



Well...I hope I helped...

Previously known as "Game_Creator". Thou shalt not thwart the way of the dragon. For thou tasteth like chicken.
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 30th Apr 2004 16:47
Thanks, The check box worked, but it wasnt reliable.

Login to post a reply

Server time is: 2025-05-23 11:44:46
Your offset time is: 2025-05-23 11:44:46