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

Home » Public Forums » archive » Widget_Table set_value interrupts editing. Solution needed.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Widget_Table set_value interrupts editing. Solution needed. [message #85127] Mon, 08 July 2013 16:20 Go to next message
timothyja123 is currently offline  timothyja123
Messages: 57
Registered: February 2013
Member
Hi all,

I have a timer event that runs in the background which uses the following statement to update values in a widget_table relative to the current system time.

widget_control, wid, Use_Table_select = select, Set_Value=values_arr

However this causes a problem when you are editing a cell and the timer event is triggered it exits the editing of the cell when set_value it called.
I can edit the background colours without this interuption e.g
widget_control, wid, Background_color =Background_color, Use_Table_select = select

Is there a way to use set_value on a table without interrupting the editing of a cell?

Thanks,
Tim
Re: Widget_Table set_value interrupts editing. Solution needed. [message #85128 is a reply to message #85127] Mon, 08 July 2013 17:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
timothyja123@gmail.com writes:

> I have a timer event that runs in the background which uses the following statement to update values in a widget_table relative to the current system time.
>
> widget_control, wid, Use_Table_select = select, Set_Value=values_arr
>
> However this causes a problem when you are editing a cell and the timer event is triggered it exits the editing of the cell when set_value it called.
> I can edit the background colours without this interuption e.g
> widget_control, wid, Background_color =Background_color, Use_Table_select = select
>
> Is there a way to use set_value on a table without interrupting the editing of a cell?

I seriously doubt it. You will probably have to implement something
yourself. Set a flag when you edit a cell, and release it when you are
done. Have your timer event handler check the flag. If it is set, just
send the event around again. That sort of thing.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Last Coyote Graphics Book Sold
Next Topic: Calling vectors in readcol from a string array?

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

Current Time: Wed Oct 08 15:49:07 PDT 2025

Total time taken to generate the page: 0.00491 seconds