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 #53391] Sun, 15 April 2007 17:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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 guess this makes sense because I would like to know
when I switch to another window, generally, so I can
update the window contents, etc.

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

I thought I might need a short wait between commands,
so I didn't clear the stack before the event was placed
on it, but at least on my machine, it doesn't appear to
be needed.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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 05:38:54 PDT 2025

Total time taken to generate the page: 1.44242 seconds