!!!!HELP!!!! How to handle mouse inputs at form level ?? 
Author Message
 !!!!HELP!!!! How to handle mouse inputs at form level ??

Greetings !

Is there a way to process all the mouse inputs (clicks/moves etc) at the form
level rather than at the control level ? You can do this for the keyboard inputs
using the KeyPrevew property.

Specifically, I want to process the mouseup event that occurs in any control on
my form in the Form_MouseUp event procedure instead of Control_MouseUp event
procedure. One way is to be dumb and call Form_MouseUp event procedure in every
control's mouseup event procedure.

Is there any way to avaoid this duplication ?


I appreciate your input and usefull insights.

thanks
mahesh



Tue, 19 May 1998 03:00:00 GMT  
 !!!!HELP!!!! How to handle mouse inputs at form level ??

Quote:

>Greetings !
>Is there a way to process all the mouse inputs (clicks/moves etc) at the form
>level rather than at the control level ? You can do this for the keyboard inputs
>using the KeyPrevew property.
>Specifically, I want to process the mouseup event that occurs in any control on
>my form in the Form_MouseUp event procedure instead of Control_MouseUp event
>procedure. One way is to be dumb and call Form_MouseUp event procedure in every
>control's mouseup event procedure.
>Is there any way to avaoid this duplication ?

>I appreciate your input and usefull insights.
>thanks
>mahesh

Go ahead and write the code you want at the form level. In each of the
controls that support mouse_xxx events, insert the line

FormName_MouseMove

That will just cascade the mouse movement from the control to the
form. Hope that takes care of your problem!

David Whitney



Fri, 22 May 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Form level handling of mouse inputs

2. Handling of keyboard input in forms

3. handling input from webpage form

4. Handling file input from HTML form - sending a file to the server (IIS)

5. Form Level Help Files in Modal forms !

6. API Call - Minimized App To Test Input of Mouse And Key Input

7. How to disable/enable keyboard input and mouse input

8. HOWTO: Disable user mouse input but still allow software to play mouse events

9. VB6 - Capture KeyUp at Form Level - Not FileListBox Control Level

10. Help - routine for mouse input

11. HELP:MOUSE input in QuickBASIC ????????????

12. HELP:MOUSE input in QuickBASIC ????????????

 

 
Powered by phpBB® Forum Software