O'Reilly logo

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

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Native Menus and Menubars

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required