Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default CommandBarButton click vs. double click

Hello all;

I'm using VSTO 2003, and creating a custom CommandBar for Excel. I want to
be able to distinguish between a single click and a double click of a
CommandBarButton. However, I noticed the CommandBarButton interface only
has a "Click" event.

What I ultimately want to accomplish is equivalent to the Format Painter in
MS Word: click it once, and it "turns off" after use. Double click it, and
it stays pressed ("on").

Any help on how to differentiate between single and double clicks of a
CommandBarButton?

Thanks in advance,

Derrick


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default CommandBarButton click vs. double click

"Derrick" wrote in message
.. .
I'm using VSTO 2003, and creating a custom CommandBar for Excel. I want
to be able to distinguish between a single click and a double click of a
CommandBarButton. However, I noticed the CommandBarButton interface only
has a "Click" event.

What I ultimately want to accomplish is equivalent to the Format Painter
in MS Word: click it once, and it "turns off" after use. Double click
it, and it stays pressed ("on").


Hi Derrick,

As far as I know, there's no way to do this. The number of things that
you can create/accomplish using custom command bar controls is only a small
subset of the number of things you see Excel and the other Office apps doing
with them.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default CommandBarButton click vs. double click

Thanks Rob. I was afraid of that.

I managed to "fake it" using a Timer, but it's a bit of a hack. However, in
doing so, I noticed that if you "double-click" a CommandBarButton, you
actually receive 3 (yes, that's THREE) Click events. If you
"quadruple-click", you get 6 events. I guess it is possible that one of
these indicate a double-click, but there is no way to differentiate - at
least as far as I can tell...

Thanks,

Derrick


"Rob Bovey" wrote in message
...
"Derrick" wrote in message
.. .
I'm using VSTO 2003, and creating a custom CommandBar for Excel. I want
to be able to distinguish between a single click and a double click of a
CommandBarButton. However, I noticed the CommandBarButton interface only
has a "Click" event.

What I ultimately want to accomplish is equivalent to the Format Painter
in MS Word: click it once, and it "turns off" after use. Double click
it, and it stays pressed ("on").


Hi Derrick,

As far as I know, there's no way to do this. The number of things that
you can create/accomplish using custom command bar controls is only a
small subset of the number of things you see Excel and the other Office
apps doing with them.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change syperlink from single click to double click syperlinker Excel Worksheet Functions 0 June 13th 08 05:01 PM
Double click Anette Denmark Excel Discussion (Misc queries) 10 February 18th 07 04:24 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM
CommandBarButton click event Javi Excel Programming 0 November 3rd 03 03:05 PM


All times are GMT +1. The time now is 03:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"