01-25-2023 08:01 AM
How can I create an event when the mouse is moving over the list of a dropdown box
01-25-2023 08:05 AM - edited 01-25-2023 08:09 AM
@Poema wrote:
How can I create an event when the mouse is moving over the list of a dropdown box
You can't.
There aren't easy tricks either.
Maybe we can come up with a workaround if you let us in on your goal...
You do get a mouse leave on the pane it's on when you 'drop down' the control (enum? ring? combobox? picture ring? they all have dropdown boxes)...
01-25-2023 08:15 AM
Thanks for your fast response
It's easy when I click on the arrow of the dropdown box nothing else may happen while the list is open and the user is busy with selecting the item.
01-25-2023 08:17 AM
BTW it's a combobox
01-25-2023 10:24 AM
There's a Mouse Enter/Leave event, that might do the trick.
01-25-2023 10:54 AM
@Yamaeda wrote:
There's a Mouse Enter/Leave event, that might do the trick.
I don't think so.
IIRC, the popup is completely alien to LabVIEW. You do get a mouse leave on the pane, and probably even the control. But this doesn't mean anything, because you get this event also when you leave the control or pane.
I forgot most of the details, as this is a big disaster. I only wanted to know if the dialog is active or not, but even that was hard. I couldn't get this done entirely, but managed to do it well enough so the UIX was acceptable.
01-25-2023 12:03 PM
You can build your own "combo box" with a listbox and a string.
Then you can get mouse move event of the "dropdown box".
01-26-2023 02:27 AM
Thank you all for trying to solve my problem.
As I see there is no easy way, so I will try to create my own xcontrol dropdown box. If someone still has a better idea, please let me know.
01-26-2023 05:22 AM
@Poema wrote:
Thank you all for trying to solve my problem.
As I see there is no easy way, so I will try to create my own xcontrol dropdown box. If someone still has a better idea, please let me know.
We still don't know why you want to get mouse move events.
There might be completely different solutions, but we'd need to know what problem you're trying to solve. As for now, we only know that the current solution isn't easy...
01-26-2023 05:55 AM
In the background is there a calculation that is running continuously but must be temporarily interrupted while the user is selecting another value or want to select another value.