Results 1 to 2 of 2

Thread: Where oh where has my MouseDown gone?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Question

    I'm using a TreeView MouseDown Event to set a public mousebutton integer. In the TreeView Node click event I'm using this integer to check if I pressed the right button.
    If I did, I'm popping up a menu. However, if I then click on another node (without getting rid of the popup) with the left button, the popup for that node appears.

    Using some Debug.Prints I found that the MouseDown event is not fired, hence the NodeClick routine doesn't know that I've 'changed' buttons. What can I do about this? Why doesn't NodeClick have a button integer argument?


    Anyone?


    Dan

    Outside of a dog, a book is a man's best friend.
    Inside of a dog, it's too dark to read.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    This problem has never occurred to me, but i have used the exact same method as you do since nodeclick don't have button argument. Maybe you could just use the mouse down event and use hittest method to get the clicked node, and by using "if node is nothing" you could check if a node was clicked at all
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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