Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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