Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (alibaba), 3,525 guests, and 18 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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