Native Menus and Menubars

   

Practical Programming in Tcl & Tk, Third Edition
By Brent B. Welch

Table of Contents
Chapter 51.  Tcl/Tk 8.0


Tk 8.0 has a native menubar mechanism. You define a menu and associate it with a toplevel. On the Macintosh this menu appears along the top of the screen when the window is activated. On Windows and UNIX the menubar appears along the top of the window. This facility is described on page 397.

Tear-off menus now track any changes to the menu they were created from. As part of this, the -transient attribute was replaced with a -type attribute.

You can create multicolumn menus with the -columnbreak attribute.


       
    Top
     



    Practical Programming in Tcl and Tk
    Practical Programming in Tcl and Tk (4th Edition)
    ISBN: 0130385603
    EAN: 2147483647
    Year: 1999
    Pages: 478

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net