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 / Check the mouse

Author
Message
Tony Mak
16
Years of Service
User Offline
Joined: 24th Nov 2007
Location:
Posted: 25th Nov 2007 06:32
how to check the mouse is clicking on a target object
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 25th Nov 2007 09:24
by checking if the mouse x / y is greater than the picture bottom, and lower then the picture top and that the user is clicking the mouse-button.

Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 25th Nov 2007 10:26
You can use 'dbPickObject' feeding it with the mouse position (dbMouseX, dbMouseY) and a range of object number
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 25th Nov 2007 10:58 Edited at: 25th Nov 2007 10:58
opps, thought he was talking about 2D.

If ur talking 3d objects u can use

dbPickObject
dbGetPickDataX/Y/Z

Login to post a reply

Server time is: 2024-11-16 20:27:01
Your offset time is: 2024-11-16 20:27:01