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

Home » Public Forums » archive » Re: widget_control and event generation
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_control and event generation [message #53539 is a reply to message #53391] Sun, 15 April 2007 21:00 Go to previous message
pdoherty is currently offline  pdoherty
Messages: 8
Registered: April 2007
Junior Member
On Apr 15, 8:52 pm, David Fanning <n...@dfanning.com> wrote:
> pdoherty writes:
>> It's as if the system thinks I have clicked on one of the tabs even
>> though all I have done is selected a new tab using widget_control.
>
> On closer inspection, this looks like what does in fact happen.
> When I switch to a new tab programmatically with WIDGET_CONTROL
> I *do* get a tab widget event in the event handler.
>
> ...
>
> I do notice in my example, at least, I can suppress
> the tab event if I do something like this:
>
> widget_control, widget, set_tab_current=7
> widget_control, widget, /clear_events

That's exactly what I have found, and what I have done to solve the
"problem". I also agree with what you wrote about it making some
sense in that it might be nice for the event handler to know that
the window has changed, in case there's something that needs doing.
So, while the behavior is logical enough, it was a little bit of
a surprise and took me a while to figure out.

Thank you for your help on this.

Peter Doherty
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_control and event generation
Next Topic: Re: how to ensure overwriting of eps graphics files?

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

Current Time: Sun Oct 12 12:57:16 PDT 2025

Total time taken to generate the page: 0.64159 seconds