Class ::tycho::YesNoCancel


Inherits: ::tycho::YesNoQuery - Source File - Contents: itk_option
Query the user for a yes/no/cancel response to a question. The command to execute in response to the user's answer can be specified using the options "-yescommand", "-nocommand", and "-cancelcommand". The value returned by whichever command is executed will be that returned by the procedure wait, if that is used. By default, the value returned by the cancel button is -1, while yes is 1 and no is 0.

Itk_option

-cancelcommand {::tycho::Dialog::answer -1}
The command to execute on a cancel response.

Index of classes



Author: Edward A. Lee
Version: @(#)YesNoCancel.itcl 1.19 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.