2012-05-14 03:52 UTC
I've been working on a text input routine that echoes what is typed in a text box on the the screen in real time. It is working as intended in Bricscad 11. I tried similar code in Bricscad 12.1 and as I remember it worked OK. I've upgraded to Bricscad 12.2.6 and the routine appears to exit before I type in the text box. In Autocad 2010 everything works except backspace -- if I enter several characters then press backspace the textbox updates but the on-screen does not. Checking Autocad's command history shows >> ; error: too many arguments << at this point. Pressing backspace a second time updates the text box properly and removes two characters from the on-screen display.
Could someone try the attached files and verify whether they work in Bricscad 12.2 and in Autocad? It is entirely possible that I've made a mistake in programming, but three different results makes me wonder. FWIW the other ODCL routines that I have used for about two years that have textboxes are also not working in Bricscad 12.2.6. I know that there were major changes in Bricscad 12.2 that could have broken ODCL. Not so sure what's going on in Autocad 2010, but the execution tracing I did does not show any errors in the lisp code. It looks to me like the wrong number of arguments (or a mal-formed list) are being sent with OnEditChanged every other time backspace is pressed.
To run the demo type texthook . The on-screen text is inserted at (10 10 0) using the default style, height, and rotation.
Thanks for all help and suggestions.
Could someone try the attached files and verify whether they work in Bricscad 12.2 and in Autocad? It is entirely possible that I've made a mistake in programming, but three different results makes me wonder. FWIW the other ODCL routines that I have used for about two years that have textboxes are also not working in Bricscad 12.2.6. I know that there were major changes in Bricscad 12.2 that could have broken ODCL. Not so sure what's going on in Autocad 2010, but the execution tracing I did does not show any errors in the lisp code. It looks to me like the wrong number of arguments (or a mal-formed list) are being sent with OnEditChanged every other time backspace is pressed.
To run the demo type texthook . The on-screen text is inserted at (10 10 0) using the default style, height, and rotation.
Thanks for all help and suggestions.