Achuthaperumal RK Posted March 30, 2023 Report Posted March 30, 2023 (edited) I'm looking for a way to automatically expand and collapse ring controls. Example: I have already seen a method where mouse click is simulated using user32.dll when mouse entered. I just want to know whether there are any better methods available. Also I do have access to LabVIEW 2022 Q3... incase if any new property/method added, kindly let me know! Thanks in advance! Edited March 30, 2023 by Achuthaperumal RK text spacing correction Quote
Bryan Posted March 31, 2023 Report Posted March 31, 2023 Someone else may know a better way to do it, but I was curious, so I did a quick google search and found this on the NI forums. I downloaded the "Menu_demo2_vi" and made a couple of modifications to the event structure - adding some "Mouse Enter" and "Mouse Leave" events to the event case that toggles visibility. I don't consider this to be a very streamlined solution and would opt for something better if available. But, it's at least proof that the behavior can be emulated in LabVIEW somehow. (Attached file is in LabVIEW 2020) Menu_demo3..viUnavailable 1 Quote
Bryan Posted March 31, 2023 Report Posted March 31, 2023 (edited) I've been playing with this a little more and I believe a simpler way may be to have a string indicator that can show/hide a list box on "Mouse Enter/Leave". Here's a little example I whipped up quickly. Again, probably not a preferred or the best way, but doable. Note - I found that ensuring that the hidden/visible items list needs to have key focus if it's going to need to "appear" over another control or indicator, at least in my limited testing of it. Hover Menu Example.viUnavailable Edited March 31, 2023 by Bryan Quote
ShaunR Posted March 31, 2023 Report Posted March 31, 2023 FWIW. The .NET control has a "DroppedDown" property. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.