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.

Dark GDK / MouseUp event

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 22nd Dec 2008 11:43
is there any way to use a MouseUp event? Instead of checking if the mouse button is clicked and then doing something, id would be cool to check if the mouse button has been released and then do something. Any ideas how to do it?
sificvoid
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location:
Posted: 22nd Dec 2008 12:21
Im still new to this GDK thing, so heres a shot in the dark:



I dont know if this would work, I havent tried it or anything. Just kinda popped in my head when I read your post
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 22nd Dec 2008 12:51
Thanks i didn't get to try it, but it gave me an idea how to do it using bool.
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 22nd Dec 2008 18:52 Edited at: 22nd Dec 2008 18:54
Timing probably wouldn't be the best way to go. Rather, you would want to check first if the mouse button is depressed inside the area of your button. When it's released you would want to find out if it is still inside the area of the button. That way the button will behave in the same fashion as the buttons of the Windows API, which is what the user will be expecting.


My site, for various stuff that I make.

Login to post a reply

Server time is: 2024-11-25 09:22:15
Your offset time is: 2024-11-25 09:22:15