06-14-2007 04:10 PM
06-14-2007 04:40 PM
06-14-2007 04:41 PM - edited 06-14-2007 04:41 PM

Message Edited by altenbach on 06-14-2007 04:31 PM
06-14-2007 04:47 PM - edited 06-14-2007 04:47 PM
Christian, you beat me to it.
Message Edited by MattH on 06-14-2007 04:49 PM
06-14-2007 05:01 PM
06-14-2007 05:07 PM
allittle unfamilliar with using events. I did try try using mouse down event before but ran into an annoying problem when i tried to operate the listboxes scroll bar(apparently a mouse down event as well). Hope don't mind i copy yours see what happens
Thanx so much for checking out and idea's
j
06-14-2007 05:11 PM
Hi John,
Sorry I misunderstood the problem a bit, but I hope that altenbach's reply is of some help to you. He is a LabVIEW Champion for good reason...
Thanks so much,
06-16-2007 10:42 AM
@amazed wrote:
I did try try using mouse down event before but ran into an annoying problem when i tried to operate the listboxes scroll bar(apparently a mouse down event as well). Hope don't mind i copy yours see what happens
That's why I use the "InBounds" terminal, which is only true if the mouse coordinates are inside the listbox when the event occures. It is false if the mousedown occurrs elsewhere on the listbox, e.g. on one of the scrollbars.
As you can see in my code example, if InBounds is false, I don't change the coordinates stored in the shift register. The event still fires, but does not really do anything. 🙂
07-05-2007 12:17 PM
Apparently 7.0 does not have the funtionality of most recent labview so was unable to implement the suggested solution. Got me thinking though and realized why putting a button and a case statement in my first example (which i definitly don't want) made the multilist box do what i wanted. ("X" on/off in last 4 columns) It was the focus.
Playing with the focus on the list box made it work correctly. Pretty sure that it not the best way but have to move on to the primary purpose of the program and hopefully this solution won't bite me later. Thanx all for the kick start.
04-03-2009 03:44 AM
Hi...
I have a similar problem with listbox mouse down event, the event is generated even if the mouse is clicked on the scroll bar (quite annoying).
I am using LV8.2.1.
I have seen your post and got interest, but unfortunately i could not find 'Inbounds' property in LV8.2.1.
Could you help me with any alternative?