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.

Newcomers DBPro Corner / Button/Selection help!

Author
Message
WoW is WOW
21
Years of Service
User Offline
Joined: 21st Jun 2003
Location: Australia
Posted: 15th Oct 2003 13:28
How do you make it that when you click the mouse button on a button(just say rectangle), or a word(s) that it does something.
e.g. You have the word 'New Game'.
How do you make it that when the mouse goes anywhere on the word that it gets highlighted and if clicked annywhere on that word and action happens?
Please help, I've tried so hard to figure it out.
Thanx.
RPG_Freak.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 15th Oct 2003 15:27
mousex and mousey can be used to determine the screen coordinates of the mouse, mouseclick() function returns a value indicating which mouse button was pressed... you can use these three to get to what you want - I think there are some code snippets in the dbp help files under the INPUT COMMANDS section.


-RUST-
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 15th Oct 2003 15:50
Here's a little something I just knocked up:



If your mansion house needs haunting, just call Rentaghost!

Login to post a reply

Server time is: 2024-11-25 12:45:03
Your offset time is: 2024-11-25 12:45:03