|
-
Nov 16th, 2000, 07:43 AM
#1
Thread Starter
Lively Member
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
-
Nov 16th, 2000, 08:12 AM
#2
Fanatic Member
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...
-
Nov 16th, 2000, 08:34 AM
#3
Fanatic Member
What about simply putting an unvisible label that fits exactly the combobox dimensions. You can then set a trigger to mousemove over this label.
-
Nov 16th, 2000, 08:39 AM
#4
Hyperactive Member
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.
-
Nov 16th, 2000, 08:41 AM
#5
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|