View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Derrick[_3_] Derrick[_3_] is offline
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