mIRC Home    About    Download    Register    News    Help

Print Thread
mouse leave event won't stop triggering when... #200828
13/06/08 04:19 AM
13/06/08 04:19 AM
Joined: Mar 2007
Posts: 40
S
silimon Offline OP
Ameglian cow
silimon  Offline OP
Ameglian cow
S

Joined: Mar 2007
Posts: 40
...you hold the mouse button down and leave a picture window.

When you're not holding a button down, it triggers just once, so
i'm assuming this is normal behavior.

Re: mouse leave event won't stop triggering when... [Re: silimon] #200830
13/06/08 05:27 AM
13/06/08 05:27 AM
Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
A
argv0 Offline
Planetary brain
argv0  Offline
Planetary brain
A

Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
Confirmed on Vista Ultimate 32bit, 6.32

Code:
menu @test {
  leave: { echo -s test $rand(1,4444444) }
}


/window -dp @test and hold mouse button down when leaving window


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: mouse leave event won't stop triggering when.. [Re: silimon] #200836
13/06/08 08:23 AM
13/06/08 08:23 AM
Joined: Apr 2004
Posts: 838
The Netherlands
Sat Offline
Hoopy frood
Sat  Offline
Hoopy frood

Joined: Apr 2004
Posts: 838
The Netherlands
This is intended behavior, and pretty useful at that. It lets you drag on a virtual area larger than the actual window.


Saturn, QuakeNet staff
Re: mouse leave event won't stop triggering when.. [Re: Sat] #200838
13/06/08 09:38 AM
13/06/08 09:38 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
qwerty  Offline
Hoopy frood
Q

Joined: Jan 2003
Posts: 2,523
Indeed, it's been like that forever. One example of its use is custom resizing routines (eg resizing a picture window while keeping a fixed width-to-height ratio). Without it they wouldn't work too well.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com