Tharwat Posted October 28, 2012 Posted October 28, 2012 Hello everyone . Is it possible to set_tile to 1 when a user type any char or number in the edit_box in the same DCL file ? Thanks in advance . Quote
Tharwat Posted October 28, 2012 Author Posted October 28, 2012 Either I did not get it or my first post wasn't clear enough . I am looking forward to check the toggle (Each) on when a user start typing in the edit box . Thanks Quote
Lee Mac Posted October 28, 2012 Posted October 28, 2012 Either I did not get it or my first post wasn't clear enough . I am looking forward to check the toggle (Each) on when a user start typing in the edit box I understood - my post details the callback $reasons applicable to a DCL edit_box and provides an example program to help you understand the events that trigger the various callback $reason values. Quote
Tharwat Posted October 28, 2012 Author Posted October 28, 2012 The $reason value is always return 2 in all cases that I have tried it at least , and I couldn't find it in Help Document to read more about it or to know what is your essential goal in that post as well . Quote
Guest kruuger Posted October 28, 2012 Posted October 28, 2012 Either I did not get it or my first post wasn't clear enough . I am looking forward to check the toggle (Each) on when a user start typing in the edit box . [ATTACH=CONFIG]38220[/ATTACH] Thanks to check toggle you need to tap TAB or ENTER first when leaving edit_box. there is no way to "dynamically" check what is entered in edit_box. http://exchange.autodesk.com/autocadarchitecture/enu/online-help/ARCHDESK/2012/ENU/pages/WS73099cc142f4875516d84be10ebc87a53f-7aa3.htm kruuger Quote
Tharwat Posted October 29, 2012 Author Posted October 29, 2012 Thank you kruuger . It is very clear now . Quote
Lee Mac Posted October 29, 2012 Posted October 29, 2012 The $reason value is always return 2 in all cases that I have tried it at least , and I couldn't find it in Help Document to read more about it or to know what is your essential goal in that post as well . The $reason variable will hold a value of 1 if the user 'submits' the contents of the edit_box tile (i.e. by pressing Enter whilst the edit_box has focus), and will have a value of 2 if the edit_box loses focus without the user submitting the contents (i.e. if another tile takes focus). This behaviour was demonstrated by my example program in the post to which I linked, accompanied by a brief explanation of the callback $reason values. Quote
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.