Gamestudio Links
Zorro Links
Newest Posts
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, JeyKey II, Grant), 4,541 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Zoom with mouse wheel [Re: Icarni] #322037
05/04/10 14:27
05/04/10 14:27
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Code:
while(1)
{
object1.scale_x -= (mickey.z * 0.001 * time_step);
object1.scale_y = object1.scale_x;
wait(1);
}



0.1 is to big, because mickey.z makes steps from 120. Use 0.001 instead. I try it, it works. And object1 is a PANELPOINTER?

Re: Zoom with mouse wheel [Re: Widi] #322042
05/04/10 14:46
05/04/10 14:46
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
Thanks! I'll try that as soon as I get a chance. object1 is just a name that I'm using to test this out.

Re: Zoom with mouse wheel [Re: Icarni] #322043
05/04/10 14:54
05/04/10 14:54
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
But object1 have to be a Panel, you don`t can use just a name!!

Re: Zoom with mouse wheel [Re: Widi] #322045
05/04/10 15:02
05/04/10 15:02
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
Oh, i see what you mean, yeah it's a panel pointer.

Re: Zoom with mouse wheel [Re: Icarni] #322216
05/05/10 13:58
05/05/10 13:58
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
The code works like a charm! Thanks!

Re: Zoom with mouse wheel [Re: Icarni] #322249
05/05/10 15:16
05/05/10 15:16
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
You`re welcome...

Page 2 of 2 1 2

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