Joy Online Manual

NAME
joy::logPanel - Generic output panel

SYNOPSIS

joy::logPanel title text ?defaultButton? ?alternateButton?

DESCRIPTION
Brings up a modal panel showing some text to the user. title is a Tcl string which is displayed in larger letters on top of the panel and text is the multi-line Tcl string which is shown in the panels text view (in fixed pitch font).  The two optional parameters are the titles of the panel's buttons (again as Tcl strings).  defaultButton defaults to the application's localized version of "OK" and  alternateButton to an empty string, which means that there is no alternate button.
The procedure returns 0 if the alternate button was pressed and 1 if the default button was pressed.

EXAMPLE

tcl> catch {expr 1/0}
1
tcl> joy::logPanel "Error Info" $errorInfo
1

SEE ALSO

joy::promptPanel

Index