LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

(Un)expected btn value change

My problem is quite complicated to explain so I made short swf video to explain it. I am trying to show a detail view of one of the columns of a multicolumn listbox(MCLB) by showing a button control allowing to edit a value that I hover over. That works fine.  I want to chanage the value of corresponding cell when the user uses inc/dec arrows or enters a number and hits enter. The problem is that when the user only enters number without using enter afterwards such a value should be simply ignored and when hovering over some other cell it should display its value. Unfortunatelly it chnages the value of following cell. The reason is that at first MouseLeave event of the Btn is fired thus the Btn is hidden and thus the Value change event fired. But before the ValChange event is fired it also handles the MCLB Mouse Move event where the actual cell coordinates are changed thereby following ValChange has inproper cell cordinates. Sounds complicated but the video hopefully enlightes it. How to overcome this issue. I just want when the num is entered manuanlly without hiting enter to ignore the value. Thanks!

 

 

Message Edited by ceties on 07-02-2009 11:58 AM
LV 2011, Win7
0 Kudos
Message 1 of 5
(2,750 Views)
From what I can tell, it seems to behave correctly in 8.6.1. Maybe something changed?
Message Edited by altenbach on 07-02-2009 10:26 AM
Message 2 of 5
(2,740 Views)
Thanks Altenbach. Those little things that I keep discovering in LabVIEW make me sometimes quite angry 😞 It's at least good to know that it was changed.
LV 2011, Win7
0 Kudos
Message 3 of 5
(2,714 Views)

ceties wrote: 
It's at least good to know that it was changed.

Actually, I might take that back. after playing with this some more, I can see the problem in 8.6.1, so may be it's no fixed.

 

I'll study it some more.....

0 Kudos
Message 4 of 5
(2,704 Views)
I got it working more or less as I wish. Now it will chase the LB value only if the user used the increment/decrement buttons or used ENTER/Return for entering the value. Escape hides the button. Somebody might have use from it…
LV 2011, Win7
0 Kudos
Message 5 of 5
(2,599 Views)