toolbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Trythat

    #1

    toolbar

    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_Button Click' 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.

  • Alvin Bruney

    #2
    Re: toolbar

    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.
    "Trythat" <don't@bother.o rg> wrote in message
    news:vi19nvcpik 20n6srgciag9svc kefrpsn9p@4ax.c om...[color=blue]
    > 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_Button Click' 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[/color]
    any[color=blue]
    > help received with thanks.
    >[/color]


    Comment

    • Trythat

      #3
      Re: toolbar

      On Sat, 27 Sep 2003 20:53:13 -0500, "Alvin Bruney"
      <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote:
      [color=blue]
      >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.[/color]


      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.


      [color=blue][color=green]
      >> 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_Button Click' 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[/color]
      >any[color=green]
      >> help received with thanks.
      >>[/color]
      >[/color]

      Comment

      • Alvin Bruney

        #4
        Re: toolbar

        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.

        "Trythat" <don't@bother.o rg> wrote in message
        news:m5fdnvco3c otb8r1vauc4g91s vootddd70@4ax.c om...[color=blue]
        > On Sat, 27 Sep 2003 20:53:13 -0500, "Alvin Bruney"
        > <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote:
        >[color=green]
        > >you can try trapping for the contextmenu event. what are you trying to[/color][/color]
        do?[color=blue][color=green]
        > >you don't normally trap for a contextmenu over a button, much less a[/color][/color]
        toolbar[color=blue][color=green]
        > >button.[/color]
        >
        >
        > What it is - I have a print button, which works fine, and prints out 1[/color]
        copy, if[color=blue]
        > 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[/color]
        user[color=blue]
        > 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[/color]
        a[color=blue]
        > spinner or text box.
        >
        >
        >[color=green][color=darkred]
        > >> Is it possible to tell which button has been clicked, when using the[/color][/color][/color]
        right[color=blue][color=green][color=darkred]
        > >> mouse button (using the mousedown event).
        > >>
        > >> I can tell which button using the 'ToolBar_Button Click' but I want to[/color][/color][/color]
        tell[color=blue][color=green][color=darkred]
        > >> whether it was a left or right mouse button click.
        > >>
        > >> I've searched Google, but surprisingly there isn't anything on there,[/color][/color][/color]
        so[color=blue][color=green]
        > >any[color=darkred]
        > >> help received with thanks.
        > >>[/color]
        > >[/color]
        >[/color]


        Comment

        Working...