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

Home » Public Forums » archive » Re: Moving between text-entry widgets...
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: Moving between text-entry widgets... [message #15944] Sat, 26 June 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Morris (dmorris@ball.com) writes:

> I have several IDL appliations I am building, each of which has
> multiple data-entry fields. For smiplicity, I am bulding the
> data-entry screens using the CW_FORM function. Most of the data
> fields are for entering integers, but some are button groups.
>
> Unfortunatley, using the mouse to go between these fields is a royal
> pain, especially durring debugging.
>
> The Question: What is the easiest way to setup the TAB-key on the
> keyborad to go between data fields? (and smilarly, Shift-Tab to go
> backwards through the fields). I am not overly attached to the
> Compount Widgets built into IDL (yet), so if it is easier to re-build
> my widgets using objects, I can do this to make the additin of the
> TAB-key to switch between fields easier.

I think you may be out of luck here, without going to a lot
of effort that will certainly make your code machine-dependent.
The TAB character (ASCII character 9) is problematic. On a
Mac, you would tab to your field automatically. On a PC
you can only trap tab characters if the text widget is non-editable.
In an editable field, your machine beeps at you. There is no
hope, I believe for a Shift-Tab combination.

What you could probably do on a UNIX machine is turn All_Events
and Editable on in your text widgets. Then trap for an insert
event with an ASCII value of 9. If you got such an event, you
would just throw it away and move your focus to the next
text widget. I've done this before, and I can assure you
it is WAY more work than it is worth. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Previous Topic: Linux IDL and Mandrake 6.0
Next Topic: Re: Postscript plots squished and a plot tick problem.

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

Current Time: Sun Oct 12 06:27:57 PDT 2025

Total time taken to generate the page: 0.55887 seconds