Sam Jones Posted September 20, 2018 Share Posted September 20, 2018 Is there a way to get the value of an edit text box when someone leaves that box. This is easily done with GetItemText(), but I only want to do this when I am leaving a field. I cannot check the field when the its component ID is returned by the Dialog Handler, because that ID is returned after every key press in the field. I want to collect the value of the field when a user tabs out of that field, not before. Quote Link to comment
JBenghiat Posted September 21, 2018 Share Posted September 21, 2018 Check when the item does not equal the ID? If you want to be more precise, set a global to true when item = ID. When the variable is true and item <> ID, the user left the text box. Quote Link to comment
Sam Jones Posted September 21, 2018 Author Share Posted September 21, 2018 I made the description too simple. I have 9 "BoxID"s with an text edit box for each one. When a value is entered into BoxID 1 I want to retrieve the entry and enter the value into each of the remaining higher numbered boxes, but only if the values in those boxes equals "". I want to do the same thing for the remaining text edit boxes. This means that I don't have just one item ID to compare to, and which box it is will vary. I imagine that some version of what you describe will have to be my solution, but my first thoughts along these lines proved to not work even before implementation. I'll keep plugging along. I had hoped there was some call that would allow treating text edit boxes in dialogs the same as edit boxes in the OIP. In the event loop, I only get an item specific event when the user leaves the field. Oh well. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.