Re: [gtk-list] RE: Bug in Option Menu



On Sat, 1 May 1999, Scott A. Barron wrote:

> I experienced this the other day while adding a menu bar to one of my
> applications.  I don't even need to keep the left button pressed and I still
> experience this.  The letters I type also remain on the menu when its hidden
> and shown again.  Is this supposed to happen?

(disclaimer: I can't speak for those who wrote the widget... take this
with a grain of salt)

I tried this on an app which I am working on, and it seems that not only
does it keep the letters which are typed, but these letters now act as
hotkeys just like on ordinary menus (Typing Alt-<letter> works too). Along
the same lines, this also works for ordinary menus -- you have to hold the
mouse button down to get this to work for them.

The part that seems to be causing confusion is that in an option menu, the
menu button faceplate itself is not redrawn to reflect the chosen state. 
However, the menu does receive the "activate" signal. I noticed this only
because the activate signal for my optionmenu selectively desensitizes
various dialog elements based on the state of the menu. (UI gurus: Is this
a legitimate use of activate?)

--Charles Lepple                    |  Check one:
System Administrator                |    ( ) Routine matter
Virginia Tech EE Workstation Labs   |    ( ) Urgent
clepple@ee.vt.edu                   |    ( ) The future of the known 
http://www.ee.vt.edu/help/          |        universe hangs in the balance



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]