Re: I need an embeddable menu widget



hidetoshi.nagai@xxxxxxxxx wrote:
Hello, Tclers.
I'm a maintainer of Ruby/Tk.
I want a kind of a menu widget which is embeddable into a container
frame.
The reason of why is the following...
...
In conclusion, I want to ask
(1) Can Tcl/Tk support an embeddable clone menu widget?
(2) Please tell me the best (better) way to embed tearoff menus.

Does it have to be an embedded clone? You can create menu widgets that
work outside of being in the menu area. If you look at the code for
guib in the spectcl project (http://spectcl.sourceforge.net/), you will
see menu builder that has kind of what you want.

--

Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
.



Relevant Pages

  • Re: Tile frame widget
    ... >I was hoping to see the code needed for creating a tile frame widget ... background color (or one that changes background color depending ... on the widget state) by defining a custom style. ...
    (comp.lang.tcl)
  • Re: Newby Q: Getting widgets to appear all at once.
    ... which gets a corresponding Tk widget. ... I looked around for some window manager mechanism to suppress updates ... some new GUI elements. ... What I tend to do is to create all that in a frame in the background ...
    (comp.lang.tcl)
  • Re: Packing problems
    ... but the frame there are in is centered horizontally. ... pack your text widget absolutely last and you'll get better resize behavior. ... Many windows applications put both the scrollbar and text widget inside a common frame that is sunken. ... commands and then resize the window to be smaller, you'll see the effect I describe in the tclscripting.com article where the scrollbars disappear before the text widget shrinks. ...
    (comp.lang.tcl)
  • Re: Re-sizing Button Widget
    ... When I ran a test, button widgets expanded the frame size to fit the default button's size. ... widget, but the widget size remained that ... If you want the containing frame to not change when you pack, place or grid a widget inside, you must turn propagation off. ...
    (comp.lang.tcl)
  • Re: Tcl/Tk - Observations from a newbie.
    ... Toolbar widget can be implemented with a frame, ... I don't think it is possible to "rename" something, ...
    (comp.lang.tcl)