Re: Timer Events and Menus [message #48012] |
Fri, 24 March 2006 15:32 |
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  |
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  |
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/
|
|
|