Mouse-clicking a button on the toolbar whilst holding down the Shift key 
Author Message
 Mouse-clicking a button on the toolbar whilst holding down the Shift key
Hi ppl,

Anybody knowing how to trigger some action by simultaneously pressing
the Shift (or Alt, or Ctrl) key and mouse-clicking a
MSComctlLib.Button on the toolbar?

With the most of the other controls it would be something like:
If (Shift And vbAltMask) > 0 And Button = 1 Then...
on the MouseDown event.

But, what do you do when it's a MSComctlLib.Button?

Nenad
http://www.*-*-*.com/ ~n63



Mon, 21 Jul 2003 03:25:56 GMT  
 Mouse-clicking a button on the toolbar whilst holding down the Shift key
You could try using a system-wide hook for the mouse. There's an article on
http://www.viewsource.org.uk which describes this.

Hope This helps,
Dan


Quote:
> Hi ppl,

> Anybody knowing how to trigger some action by simultaneously pressing
> the Shift (or Alt, or Ctrl) key and mouse-clicking a
> MSComctlLib.Button on the toolbar?

> With the most of the other controls it would be something like:
> If (Shift And vbAltMask) > 0 And Button = 1 Then...
> on the MouseDown event.

> But, what do you do when it's a MSComctlLib.Button?

> Nenad
> http://www.bigfoot.com/~n63



Mon, 21 Jul 2003 06:34:32 GMT  
 Mouse-clicking a button on the toolbar whilst holding down the Shift key


Quote:
>You could try using a system-wide hook for the mouse. There's an article on
>http://www.viewsource.org.uk which describes this.

>Hope This helps,
>Dan

Thanx Dan.  I'll check it out.
Quote:


>> Hi ppl,

>> Anybody knowing how to trigger some action by simultaneously pressing
>> the Shift (or Alt, or Ctrl) key and mouse-clicking a
>> MSComctlLib.Button on the toolbar?

>> With the most of the other controls it would be something like:
>> If (Shift And vbAltMask) > 0 And Button = 1 Then...
>> on the MouseDown event.

>> But, what do you do when it's a MSComctlLib.Button?

>> Nenad
>> http://www.bigfoot.com/~n63



Mon, 21 Jul 2003 07:08:10 GMT  
 Mouse-clicking a button on the toolbar whilst holding down the Shift key

Quote:



>>You could try using a system-wide hook for the mouse. There's an article on
>>http://www.viewsource.org.uk which describes this.

>>Hope This helps,
>>Dan

>Thanx Dan.  I'll check it out.

Nah, I tried that and it doesn't work in VB6...
Quote:


>>> Hi ppl,

>>> Anybody knowing how to trigger some action by simultaneously pressing
>>> the Shift (or Alt, or Ctrl) key and mouse-clicking a
>>> MSComctlLib.Button on the toolbar?

>>> With the most of the other controls it would be something like:
>>> If (Shift And vbAltMask) > 0 And Button = 1 Then...
>>> on the MouseDown event.

>>> But, what do you do when it's a MSComctlLib.Button?

>>> Nenad
>>> http://www.bigfoot.com/~n63



Mon, 21 Jul 2003 07:34:42 GMT  
 Mouse-clicking a button on the toolbar whilst holding down the Shift key
Maybe try the GetKeyState API...


Quote:



> >>You could try using a system-wide hook for the mouse. There's an article
on
> >>http://www.viewsource.org.uk which describes this.

> >>Hope This helps,
> >>Dan

> >Thanx Dan.  I'll check it out.

> Nah, I tried that and it doesn't work in VB6...



> >>> Hi ppl,

> >>> Anybody knowing how to trigger some action by simultaneously pressing
> >>> the Shift (or Alt, or Ctrl) key and mouse-clicking a
> >>> MSComctlLib.Button on the toolbar?

> >>> With the most of the other controls it would be something like:
> >>> If (Shift And vbAltMask) > 0 And Button = 1 Then...
> >>> on the MouseDown event.

> >>> But, what do you do when it's a MSComctlLib.Button?

> >>> Nenad
> >>> http://www.bigfoot.com/~n63



Tue, 22 Jul 2003 16:18:20 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to Hold Down Shift Key Indefinitely?

2. Simultaneously pressing a key and mouse-clicking a button on a toolbar

3. Event for holding left mouse button down???

4. Detecting whether a mouse button is held down

5. How to make a toolbar button click down/click up

6. Click and hold a mouse button on a title bar ( 95 )

7. Detect <Shift>-click on toolbar button

8. FYI: Mouse-click on inactive button may drill down

9. Populate A Form While Mouse Is Held Down?

10. Out of stack space, holding down a key

11. How to find if a key is held down

12. Prevent the TAB key to be held down.

 

 
Powered by phpBB® Forum Software