LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mousemove+eventstructur

hello,
is it possible that a "Menu Ring" (Text Control) to the frontpanel (with for example 4 data inside) opens (and closes) automaticly, if the mouse touch ( and  leave) the surface of the "Menu Ring"??
I tried it with a event structur (mouse move, mouse leave) and property nodes ( key focus), but I didn't find a solution.
Is anybody there, who know a answer?
greetings zäpfle
0 Kudos
Message 1 of 11
(3,785 Views)
Hello zäpfle,

what do you mean by "open and close"?
Should the control appear and vanish on mouse over/leave? Or should all data items be visible at once (like a context menu appearing on right mouse click)?


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,775 Views)
Sounds like what you really want to do is simulate a mouse click to drop open the list box.

There is no property to do this, but there is hope. Check out this thread for some VI's that simulate mouse clicks.

For you're event structure, you probably want to use the "Mouse Enter" event to trigger the click instead of the "Mouse Move" event. That way it only gets triggered once when the mouse first enters the control bounds.

Let us know if this works out for you.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 3 of 11
(3,770 Views)
hello GerdW,
with "open and close" I mean, that the data items be visible (like a pull down menü) at once without on right mouse click, I only touch with the mouse the "Menu Ring" (I'm going over the "Menu Ring"). The "Menu Ring" should be visible the whole time. Do you know a possibility?  I use LV 7.0.  and Win2000.
Is it possible to communicate in german?
zäpfle
0 Kudos
Message 4 of 11
(3,762 Views)
Not sure how useful that thread will be, Ed.  The URL returns a 404 and the .vis in the .llb cannot be opened in LV8.0 (no block diagrams or some such) Robot Sad
0 Kudos
Message 5 of 11
(3,758 Views)
I will try to simulate a mouse click
0 Kudos
Message 6 of 11
(3,754 Views)
Hello Zäpfle,

yes we could communicate in german, but most of the guys here only understand english. This way you get far more answers...

I would do the following:
Read the data items from the ring, format a string of them and feed a string indicator with this string. On "Mouse Enter" you make the string visible, on "Mouse Leave" you hide the string. It's the easy way with enough possibilities to do the formatting of the string.
It will not look like a pull down menu, but you can search for this in the forum too. There are some examples that show how to do "pull down menus" even in LV7.0.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(3,751 Views)


@jasonhill wrote:
Not sure how useful that thread will be, Ed.  The URL returns a 404 and the .vis in the .llb cannot be opened in LV8.0 (no block diagrams or some such) Robot Sad


Opps, Smiley Tongue  I guess I should have checked that first.

If you just do a search on the forums for "Simulate Mouse Click", you'll get quite a few threads that cover this subject. Maybe one of them will have something useful.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 8 of 11
(3,750 Views)
//Sounds like what you really want to do is simulate a mouse click to drop open the list box.
nearly, I want open a menu ring
 
//For you're event structure, you probably want to use the "Mouse Enter" event to trigger the click instead of the "Mouse Move" event. That way it only gets triggered once when
//the mouse first enters the control bounds.

//Let us know if this works out for you.
 
with a menu ring, it doesn't work
 
 
0 Kudos
Message 9 of 11
(3,718 Views)
Check the results from the search that Ed gave. There are examples that address (and solve) your problem. These are the ones that use the Windows API that call the "mouse_event" function. That function has been superceded by "SendInput" (according to MSDN), but it should still work, given that Microsoft tries to support everything going back to the Stone Age.
0 Kudos
Message 10 of 11
(3,709 Views)