next up previous contents index
Next: fileselect Up: Procedures Previous: TextBoxTextBoxFd, TextBoxFile

YesNoBox

  This template defines a new procedure named YesNoBox. Calling this procedure pops up a dialog box with a question to be answered with yes or no. The procedure gets the following parameters:

tabular2234

To configure the different aspects of the yes/no box, there exists a global array named yesNoBox. A default value of ``-'' means that the Tk default value is used. This array contains elements that control the yes/no box (color, font etc.):

tabular2237

A small example of an invocation may look like this:

 
		global yesNoBox

set yesNoBox(font) *times*24*

if {[YesNoBox ''Yes/no message''] == 0} {

puts stdout ''yes''

}

This would create the following dialog box:

   figure2246
Figure: The template YesNoBox



Harry Beker
Thu Feb 29 18:06:38 MET 1996