head	1.2;
access;
symbols
	postmerge-20040405-ansi:1.1
	premerge-20040404-ansi:1.1
	postmerge-autoconf:1.1
	autoconf-freeze:1.1
	premerge-autoconf:1.1
	postmerge-20040315-windows:1.1
	premerge-20040315-windows:1.1
	windows-20040315-freeze:1.1.8.1
	autoconf-20031203:1.1
	autoconf-20031202:1.1
	autoconf-branch:1.1.0.6
	phong-branch:1.1.0.4
	photonmap-branch:1.1.0.2
	windows-branch:1.1.0.8;
locks; strict;
comment	@# @;


1.2
date	2004.05.24.03.59.27;	author morrison;	state dead;
branches;
next	1.1;

1.1
date	2003.03.13.13.20.24;	author jra;	state Exp;
branches
	1.1.8.1;
next	;

1.1.8.1
date	2004.03.12.09.57.16;	author morrison;	state Exp;
branches;
next	;


desc
@@


1.2
log
@moved to src/other/iwidgets/
@
text
@# ----------------------------------------------------------------------
#  DEMO: menubar in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0

iwidgets::menubar .mb -helpvariable helpVar -menubuttons {
    menubutton file -text "File" -menu {
        options -tearoff false

        command new -label "New" \
                -helpstr "Open new document" \
                -command {puts "selected: New"}

        command close -label "Close" \
                -helpstr "Close current document" \
                -command {puts "selected: Close"}

        separator sep1

        command exit -label "Exit" -command {exit} \
                -helpstr "Exit application"
    }

    menubutton edit -text "Edit" -menu {
        options -tearoff false

        command undo -label "Undo" -underline 0 \
                -helpstr "Undo last command" \
                -command {puts "selected: Undo"}

        separator sep2

        command cut -label "Cut" -underline 1 \
                -helpstr "Cut selection to clipboard" \
                -command {puts CUT}

        command copy -label "Copy" -underline 1 \
                -helpstr "Copy selection to clipboard" \
                -command {puts "selected: Copy"}

        command paste -label "Paste" -underline 0 \
                -helpstr "Paste clipboard contents into document" \
                -command {puts "selected: Paste"}
    }

    menubutton options -text "Options" -menu {
        options -tearoff false -selectcolor blue

        radiobutton byName -variable viewMode \
                -value NAME -label "by Name" \
                -helpstr "View files by name order" \
                -command {puts "selected: by Name"}

        radiobutton byDate -variable viewMode \
                -value DATE -label "by Date" \
                -helpstr "View files by date order" \
                -command {puts "selected: by Date"}

        cascade prefs -label "Preferences" -menu {
            command colors -label Colors... \
                -helpstr "Change text colors" \
                -command {puts "selected: Colors..."}

            command fonts -label "Fonts..." \
                -helpstr "Change text font" \
                -command {puts "selected: Fonts..."}
        }
    }
}
pack .mb -fill x

frame .fr -width 200 -height 200 -background white
pack .fr -fill both

label .help -anchor w -textvariable helpVar -width 40
pack .help -fill x
@


1.1
log
@*** empty log message ***
@
text
@@


1.1.8.1
log
@merge from HEAD
@
text
@@

