Results 1 to 5 of 5

Thread: Detecting MouseMove over ComboBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Liverpool, UK
    Posts
    64
    As there is no MouseMove event for a combo box (unlike edit boxes etc), is there anyway to fire some code when the user moves the mouse over a combo box ?????


    Thanks

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    How about doing it implicitly from the Form's MouseMove Event - if the X and Y co-ordinates go beyond a certain range then you can assume you are over the ComboBox, there will be no more X,Y until the cursor moves off the ComboBox. This does not help with MouseMoves within the box itself but it is a start.

    the only alternative is to create a User Control and delegate the MouseMove event back to the form? This is a really hazy area for me, but it might be worth investigating.

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  3. #3
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727
    What about simply putting an unvisible label that fits exactly the combobox dimensions. You can then set a trigger to mousemove over this label.

  4. #4
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    maybe you could subclass the hwnd and intercept the messages.


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  5. #5
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Isn't that what you do when you create a user control that uses multicasting?

    It's an area I am trying to get into, but events keep conspiring against me, teehee

    P.

    Not nearly so tired now...

    Haven't been around much so be gentle...

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