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

Home » Public Forums » archive » Re: WIDGET_TEXT - HOW TO NOT CHANGE VALUE OF TEXT WHILE EDITING FIELD?
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: WIDGET_TEXT - HOW TO NOT CHANGE VALUE OF TEXT WHILE EDITING FIELD? [message #34928] Fri, 02 May 2003 09:29 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Tobi wrote:
> i have a gui which has a few fields for changing motor positions as a
> widget_text which was made /editable. i also run a timer which looks
> up the motor positions every few seconds and updates the position in
> that field.
>
> sometimes it happens that i want to change one value and when i enter
> the new value, the timer event kicks in and updates the field with the
> current motor position and i have to start over again and press enter
> before it updates again.
>
> is there a way of telling idl not to change the value while the field
> is edited?
>
> thanks!
>
> TOBI

Hello,

Take a peek at the /ALL_EVENTS and /EDITABLE keywords to the
WIDGET_TEXT() function. I think you want to set each of these - but you
have to communicate to the end user that a <return> or <enter> keystroke
is required. If this is the only field you are interested in polling
with the timer events, then you can actually remove the timer event (a
good thing to remove) Instead, use the event generated when the user
hits the enter key after editing your text widget.

ben
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Fortran unformatted data: Big or little endian
Next Topic: 48 variable limit?

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

Current Time: Fri Oct 10 03:04:56 PDT 2025

Total time taken to generate the page: 0.40140 seconds