tabbing in widget_text [message #81069] |
Fri, 10 August 2012 09:25 |
Russell Ryan
Messages: 122 Registered: May 2012
|
Senior Member |
|
|
Hi everyone,
I'm developing a compound widget which uses widget_text, but only allows the entry to be either an integer or a float (okay I guess long or double is fine too). I've programmed in all the logic that can accept scientific notation as well as multiple +/- signs (in the case of -1.0d-1). I can even use /tracking_events to tell if the user enters only '-' then moves the mouse off the widget. But, what I can't do is tell if a user tabs onto the widget, then enters only '-', then tabs off. In which case, the code will obtain '-' as the entry and process it as valid. Of course, I can disable tabs with TAB_MODE=0, but that seems tantamount to solving a headache by lobotomy. Does anyone have any great ideas?
I figure if I can get tabbing to issue an event, then I'm home free. But after checking the manuals, that didn't seem possible.
Thanks!
Russell
|
|
|