Results 1 to 4 of 4

Thread: Right mouse double click

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Posts
    18

    Right mouse double click

    Experts,

    How do you prevent a person clicking the right mouse button in quick succession from being interpreted by Visual
    Basic as a double-click?

    Who programmed this screwy querk into Visual Basic functionality anyway? Other Windows programs don't interpret two quick right mouse clicks as a 'double-click'.

    Thank you!

  2. #2
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    I think that's not how VB handles it, but how Windows handles it. Seems logical to me, how else do you want to be able to detect double-clicks?
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Posts
    18

    "Right mouse" double-clicks

    What? "Right mouse" double-clicks. Try to double-click your right mouse button anywhere and it wont produce a double-click effect...only the left mouse button does that--except in Visual Basic?

    How can you say right mouse double-clicks make sense?

  4. #4
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Well, here's the reason why it makes sense:



    (straight from the Win32 SDK)

    The WM_RBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width