BWidget::using ttk]} {
            eval [list ttk::label $frame.msg] $maps(.frame.msg) -wraplength 800
        } else {
            eval [list label $frame.msg] $maps(.frame.msg) \
                -relief flat -bd 0 -highlightthickness 0 -wraplength 800
        }

        pack $frame.msg -fill both -expand 1 -padx {5 10} -pady {5 0}

        if {[string length $name]} {
            set msg "Don't ask me again"
            set varName [Widget::widgetVar $dialog dontAskAgain]
            if {[BWidget::using ttk]} {
                ttk::checkbutton $path.check -text $msg -variable $varName
            } else {
                checkbutton $path.check -text $msg -variable $varName
            }

            pack $path.check -anchor w -side bottom -pady {0 2}

            bind $path.bbox <Map> [list pack configure $path.bbox -pady 5]
        }

        set res [Dialog::draw $path]
        if {!$user} { set res [lindex $lbut $res] }

	destroy $path
    } else {
	array set tkMBoxArgs $maps(tkMBox)

	if {![string equal $icon "none"]} {
	    set tkMBoxArgs(-icon) $icon
	}

	if {[info exists tkMBoxArgs(-parent)]
	    && ![winfo exists $tkMBoxArgs(-parent)]} {
            unset tkMBoxArgs(-parent)
	}

	set tkMBoxArgs(-type) $type
	set res [eval tk_messageBox [array get tkMBoxArgs]]
    }

    ## If this dialog has a name, and the user checked to remember
    ## the value, store it in the dialogs array for next time.
    if {[string length $name]} {
        upvar #0 $varName var
        if {$var} { set dialogs($name) $res }
    }

    Widget::destroy $dialog

    return $res
}


proc MessageDlg::_key_traversal { path dir } {
    set but [focus -lastfor $path]
    if {$but eq $path} {
        set def [ButtonBox::index $path.bbox default]
        set but [ButtonBox::index $path.bbox $def]
        ButtonBox::configure $path.bbox -default -1
    }

    set idx [ButtonBox::index $path.bbox $but]
    set max [ButtonBox::index $path.bbox end]

    if {$dir eq "left"} { incr idx -1 }
    if {$dir eq "right"} { incr idx 1 }

    if {$idx < 0} { set idx $max }
    if {$idx > $max} { set idx 0 }

    focus [ButtonBox::buttons $path.bbox $idx]
}
