10-06-2010 11:25 AM
Hello,
I'm trying to fully understand XControls...
I'm doing an KeyPad exemple, which consist of button for digit. a "Clear" button and a "Enter" button. The entered number is shown in a string indicator (see attached image for clarity).
I would like the XControl to fire the "Value Change" event on a main VI only when the user press the "Enter" button.
My problem is that I'm not able to keep in memory the previously pressed button...
Anybody knows how to do this?
Thanks in advance!
10-07-2010 02:03 PM
I'm not really sure about what problem you are having, without seeing the code. However it might be helpful to take a look at this very simple XControl example to see what you might be doing wrong. I'd be interested in seeing if you get this working and what is the problem.
10-07-2010 02:08 PM
Hello David,
Well, I gor it sorted out!
What I did was keeping the current string in memory in the "Display State" cluster. I had to wire a true constant to the "State Changed?" boolean in the "Action" Cluster. This was mainly my problem...
Thanks anyway!
10-07-2010 02:12 PM
No problem, I'm glad you got it figured out.