Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,510 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
right click a button #390122
12/22/11 22:10
12/22/11 22:10
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline OP
Member
msmith2468  Offline OP
Member

Joined: Dec 2009
Posts: 256
USA , NY
i could really use the ability to right click a button. im doing something similar to paint. where when you left click a tool then left clicking an element has that effect and right clicking stores a different effect.

but i can not seem to figure out how to get a button on a panel to register a right click. maybe its something simple but i did not see anything in the manual.

any help is appreciated. Thanks


Mikes Wicked Games

www.mikeswickedgames.com
Re: right click a button [Re: msmith2468] #390262
12/25/11 11:46
12/25/11 11:46
Joined: Jan 2011
Posts: 65
R
reknak Offline
Junior Member
reknak  Offline
Junior Member
R

Joined: Jan 2011
Posts: 65
Search for this in the gamestudio manual: EVENT_RIGHTCLICK. And in the function that does the effects of clicking use:

if (event_type == EVENT_RIGHTCLICK) {...}

Re: right click a button [Re: reknak] #390276
12/25/11 16:17
12/25/11 16:17
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline OP
Member
msmith2468  Offline OP
Member

Joined: Dec 2009
Posts: 256
USA , NY
Thanks for the reply.

The event rightClick works for clicking entities. but what i am trying to do is right click the built in button function on a panel. the only way i can think of doing this is by makeing my own button function that has the ability to right click.


Mikes Wicked Games

www.mikeswickedgames.com

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1