comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: tabbing in widget_text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: tabbing in widget_text [message #81068] Fri, 10 August 2012 09:37
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Friday, August 10, 2012 12:25:37 PM UTC-4, (unknown) wrote:
> 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


Sheesh.... It always goes this way with me. I kludged this together by using /kbrd_focus_events and in the event handler processed the "enter" tag. So, I test if it's a valid entry only when event.enter eq 0. That will work nicely for my problem, but I'd still like tabbing to issue an event!

-Russell
[Message index]
 
Read Message
Previous Topic: tabbing in widget_text
Next Topic: How to add trend line over Coyote graphics plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:54:23 PDT 2025

Total time taken to generate the page: 0.00372 seconds