08-25-2009 10:40 PM
Hi,
I wondered why I was getting frustrated entering a pasword that was verified in the mouse down event of the OK button. This is becuase when you click the OK button the entered text is still in the buffer and not copied to the terminal. (Which is more natural than clicking somewhere on the FP first). Note pressing enter or tab gets the string control out of enter text mode.
Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event. As this is one of those not obvious but sometimes happens bugs... I have posted for reference for others 🙂
Example attached v8.6.1.
08-26-2009 12:01 AM
Nick wrote:
Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
08-26-2009 02:10 AM
Hi Nick,
You could set a boolean "PwCorrect" in an event case triggering on the value change event on the password string control. You could also use the mouse up event on the OK button (this would also mimic the behaviour in most applications better) and deal with stopping or not stopping the loop there as well.
//Martin
08-26-2009 04:25 PM