Re: problem with two tlb widget program [message #36880] |
Wed, 05 November 2003 14:43  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Songtao Liu writes:
> I have a problem with a two tlb widget program. What I want is when
> the user press enter on the cw_field widget in the second tlb, the
> plot on the second tlb should be refreshed. But the program runs very
> weird, when user press the enter, it just waiting, only after you move
> the mouse to the draw widget on the first tlb, it begin to refresh the
> draw widget on the second tlb. Following are the codes, any
> suggestions are highly appreciated.
Did you find this code on the RSI web page?
(Oh, I'm just kidding...)
I can't tell from the code what exactly you are trying
to do. You can find an article on my web page, however,
about cascading menu choices (all in their own top-level
bases), that can communicate back to the first widget.
It looks to me like the principle is the same.
http://www.dfanning.com/widget_tips/cascading.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: problem with two tlb widget program [message #37013 is a reply to message #36880] |
Thu, 06 November 2003 12:24  |
lius02
Messages: 6 Registered: November 2003
|
Junior Member |
|
|
David Fanning <david@dfanning.com> wrote in message news:<MPG.1a132aea4b5828c2989733@news.frii.com>...
> Songtao Liu writes:
>
>> I have a problem with a two tlb widget program. What I want is when
>> the user press enter on the cw_field widget in the second tlb, the
>> plot on the second tlb should be refreshed. But the program runs very
>> weird, when user press the enter, it just waiting, only after you move
>> the mouse to the draw widget on the first tlb, it begin to refresh the
>> draw widget on the second tlb. Following are the codes, any
>> suggestions are highly appreciated.
>
> Did you find this code on the RSI web page?
>
> (Oh, I'm just kidding...)
>
> I can't tell from the code what exactly you are trying
> to do. You can find an article on my web page, however,
> about cascading menu choices (all in their own top-level
> bases), that can communicate back to the first widget.
> It looks to me like the principle is the same.
>
> http://www.dfanning.com/widget_tips/cascading.html
>
> Cheers,
>
> David
Dear Dr. Fanning,
Thank you for your prompt response, I read you codes and I think my
problem is I didn't register the second tlb by xmanager. Now the
problem has solved.
Thanks a lot!
Songtao
|
|
|