Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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