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

Home » Public Forums » archive » Re: Timer Events and Menus
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
Re: Timer Events and Menus [message #48012] Fri, 24 March 2006 15:32
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dan Carreira writes:

> I'm guessing that I could build my own pull-down menu, using hidden
> bases that would be mapped on a 'File' button down event and ulitmatey
> hidden when a final selection was made... but that seems like an awful
> lot of work. :)

While you are re-inventing the wheel, get the rest of
the widgets working the way they are suppose to work, too, OK. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Timer Events and Menus [message #48014 is a reply to message #48012] Fri, 24 March 2006 14:57 Go to previous message
Dan Carreira is currently offline  Dan Carreira
Messages: 5
Registered: April 2003
Junior Member
That's kind of what I was afraid of. :)

I'm guessing that I could build my own pull-down menu, using hidden
bases that would be mapped on a 'File' button down event and ulitmatey
hidden when a final selection was made... but that seems like an awful
lot of work. :)

Anyway thanks for the input and the quick reponse David; much
appreciated.
Re: Timer Events and Menus [message #48015 is a reply to message #48014] Fri, 24 March 2006 14:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dan Carreira writes:

> I've written an object oriented application with a generic event
> handling wrapper routine that directs events to various objects.
>
> I've placed a print statement in the wrapper so that I can see when and
> what events occur.
>
> My timer goes off flawlessly until I expand the file menu; at which
> point my timer events stop coming in.
>
> It appears as if the entire application has halted, and remains halted
> until I either make a selection or close the menu. Upon which I get an
> instantaneous timer event and the updating continues again.
>
> First, does anyone know why this occurs? And second does anyone know
> how to keep the timer events going?
>
> I beleive it has something to do with the menu widget buttons but I'm
> not entrely sure.

Clicking a menu button (which is what the File button is, by
virtue of being in the menubar) causes a blocking widget event
(the button reveals the pull-down part of the menu). No other
event can occur until this blocking event is finished, either
by making a selection or releasing the pull-down menu. If it
*didn't* occur like this, it would not be possible to get
a pull-down button event.

There is nothing you can do about it. The next timer event
will be generated as soon as this blocking event is released.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Azimuth and Offset XYZ position correction
Next Topic: Installing 6.2 on Fedora Core 5

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

Current Time: Thu Oct 09 04:49:56 PDT 2025

Total time taken to generate the page: 0.48065 seconds