toolbar

  • Thread starter Thread starter Trythat
  • Start date Start date
T

Trythat

Is it possible to tell which button has been clicked, when using the right
mouse button (using the mousedown event).

I can tell which button using the 'ToolBar_ButtonClick' but I want to tell
whether it was a left or right mouse button click.

I've searched Google, but surprisingly there isn't anything on there, so any
help received with thanks.
 
you can try trapping for the contextmenu event. what are you trying to do?
you don't normally trap for a contextmenu over a button, much less a toolbar
button.
 
you can try trapping for the contextmenu event. what are you trying to do?
you don't normally trap for a contextmenu over a button, much less a toolbar
button.


What it is - I have a print button, which works fine, and prints out 1 copy, if
I want to print more than 1 copy, then I have to click it more than once.

I don't want to have the system print dialog come up, so I thought, if a user
wants to print more than 1 copy, I could implement a right-click on the
button, then a small dialog would come up and they could enter a value via a
spinner or text box.
 
I see what you are trying to accomplish, but you are re-inventing the wheel
unnecessarily. The print dialog encapsulates this process.

If you still want to proceed and this is an asp.net process, then you will
need to do this from javascript in the client side by mapping the
contextmenu event to a javascript function.
 
Back
Top