LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Expanding a ring control or enum

Solved!
Go to solution

I have rings and enums on my front panel that are disabled and greyed.  When I click on one of them I enable it.  However, because it was disabled to begin with the dropdown box does not open up.  I would the box to open on this click, rather than having to click again.  I've searched through the properties and nothing has jumped out at me. 

 

Anyone know of a solution?

 

Thanks.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 1 of 9
(6,058 Views)

I used the mouse enter event property it may help if not sorry

 

I am still looking though

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 9
(6,053 Views)
here is the code I used
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 3 of 9
(6,049 Views)

You misunderstood.  I enable it using Mouse Down when I click it.  But I also want the list to open up when I click it that first time.

Or in the example you posted, I would want the list to open up on Mouse Enter.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 4 of 9
(6,036 Views)
Solution
Accepted by topic author elset191

Hello,

 

I have taken a look at your problem and I believe that this does what you want. After your first mouse click, the event structure creates a programmatic mouse click in the same location in order to open the menu items. This is done by calling into the user32.dll and generating a mouse click. After the first mouse click, the event structure sends another up click, then initiates the down and up sequence.

 

-Zach

Message 5 of 9
(5,976 Views)
It'll have to do.  Thank you.
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 6 of 9
(5,957 Views)

Outstanding!  The above VI solved my similar problem...

0 Kudos
Message 7 of 9
(4,945 Views)

That's great!

 

What would be the best way to catch the Mouse Leave event of the drop down list?

 

I'd like to close it programmatically when user moves mouse out when it's open.

 

I'm thinking to register Owning Pane Mouse Move event but...That's a bit complicated.

 

Jimmy

0 Kudos
Message 8 of 9
(4,924 Views)

@dj143 wrote:

Outstanding!  The above VI solved my similar problem...


I think using the "Mouse Down?" filter event would be a lot simpler (did they not have filter events in 2009?).

Message 9 of 9
(4,907 Views)