12-06-2016 04:15 PM
Hi,
I am a bit stuck here. I use a the disabled property of a control (actually a typdef with lots of controls) to show and hide them when a password is entered. It works fine IF after I change the password I minimise and maximise the program (in Windows), forcing a complete redraw!
I would like to request that the VI redraws itself but dont know how! I tried using the code shown below with the DeferPanUpdts property but it did not help. The VI has the control I want to disable on a page in a tab control (shown with red circle).
Any ideas?
Solved! Go to Solution.
12-06-2016 04:35 PM
12-06-2016 04:41 PM
It hard to tell from a picture! What are the properties of the control "Installer Password" Update while typing? Limit to single line? We can only guess.
12-06-2016 05:09 PM
Why does everyone hate sequence structures??? I am new to LV...
I only added it in a desperate attempt to try solve the problem. I posted it with the update property set and cleared as I figured it was the first thing that people would say to try (based on other forums I read).
12-06-2016 05:11 PM
Sorry, I cannot post the VI, I am not allowed under client confidentiality agreement...
The control is justa normal string entry. but that doesn't matter in this case as that part of the code works perfectly. It is just that the screen doesn't redraw when the disabled property is changed. If I force a redraw by resizing the window it draws correctly.
12-06-2016 05:24 PM
Because they are always unnecessary and graphically bloated, they tend to break dataflow (the programming paradigme of Labview) and also tend to lead to bad error handling.
But it is only a remark, it will not solve your problem.
I made a small test using similar elements and did not see your problem. If you cannot post that vi, make simple example vi demonstrating the same problem and post that instead?
12-06-2016 05:32 PM
Or wait, I think I understand what you mean. "Value Change" is only triggered when the control loses focus, when you do a mouse press outside the control for instance or press enter (depending on string control settings).
I am so used of always "clicking out" of the control I did not think about it at first.
It is not elegant, but the Key Down Event will do what you want to do.
12-06-2016 05:34 PM
Apologies... the properties of the text entry control do matter. The problem was that the controls value was only being updated when it lost focus or enter pressed. There is a property of the control to "update value while typing" which solved the problem.
The flay sequence structure is all gone now and only the contents of the first frame are required. Works mint!
Seems obvious now!!!
12-06-2016 09:10 PM
@JÞB wrote:
It hard to tell from a picture! What are the properties of the control "Installer Password" Update while typing? Limit to single line? We can only guess.
8-Ball calibration batting 1k this week