Widget_Table set_value interrupts editing. Solution needed. [message #85127] |
Mon, 08 July 2013 16:20  |
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  |
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.")
|
|
|