commandbarbutton + click, doubleclick event

  • Thread starter sebastian gereck
  • Start date
S

sebastian gereck

hallo there,
i added a button to the commendbar.now i want to execute code in case of a
click and doubleclick-event.
i know how to do things with the onaction- event, but this is not really
what i want.
i have something like that :
Dim mybutton as CommandBarButton
mybutton = CommandBars(0).Buttons(0)
Sub mybuttonaction
do something
End Sub

thanks in advance
sebastian
 
T

Tom Ogilvy

To the best of my knowledge,
Commandbar buttons only have an onaction property. A double click is the
same as a click.
 
S

sebastian gereck

there is a default-button to overtake formatsettings ( the button with the
brush ).
its behaviour is different if you click or doubleclick it.
this is the way my button should work too.

maybe you have an idea of an workaround ?

thanks
sebastian
 
T

Tom Ogilvy

Not every capability of the built in menus are provided to the programmer.
I believe this is one of those cases. Maybe someone else knows better.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top