Neil Toulouse
Programmer
Hi Guys!
I have been busy putting a new interface on one of our products, and to spice things up a bit I have used a form to create a fancy-ish menu, and have thus coded it to have some menu behaviour.
I have achieved all I need it to do except close it down! Basically, all I am trying to achieve is if the mouse pointer moves off this menu form, the form closes.
So for this I have some code in the MOUSEMOVE to check mouse co-ords in relation to the dimensions of the form, and to close it if the pointer reaches within 2 px of any of the edges. I have bound all mousemove events of all the objects on the form to the form's mousemove event.
What I am getting is if you move the mouse farily slowly, the code works fine and the form closes.
If, however, you move the mouse quickly (and by quickly here I mean a 'normal' speed that you would move the mouse!!) you can jump out of the form without the form closing. To then get it to close, you have to move back onto the form and move slowly off!!
Is there a way I can overcome this?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...
I have been busy putting a new interface on one of our products, and to spice things up a bit I have used a form to create a fancy-ish menu, and have thus coded it to have some menu behaviour.
I have achieved all I need it to do except close it down! Basically, all I am trying to achieve is if the mouse pointer moves off this menu form, the form closes.
So for this I have some code in the MOUSEMOVE to check mouse co-ords in relation to the dimensions of the form, and to close it if the pointer reaches within 2 px of any of the edges. I have bound all mousemove events of all the objects on the form to the form's mousemove event.
What I am getting is if you move the mouse farily slowly, the code works fine and the form closes.
If, however, you move the mouse quickly (and by quickly here I mean a 'normal' speed that you would move the mouse!!) you can jump out of the form without the form closing. To then get it to close, you have to move back onto the form and move slowly off!!
Is there a way I can overcome this?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...