next up previous contents index
Next: IsADirIsAFile, IsASymlink Up: Procedures Previous: IconBar

InputBox

    This template defines two new procedures named InputBoxOne and InputBoxMulti. Calling this procedures pops up a dialog box to make textual input. The procedure InputBoxOne allows one line of text, and the procedure InputBoxMulti allows several lines of text. The input boxes can be modal or not. If they are modal, the entered string is returned. Otherwise, the specified command is evaluated. The procedure gets the following parameters:

tabular2062

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

Array element & Default & Purpose

supertabular2069

A small example of an invocation may look like this:

 
		InputBoxMulti

This would create the following dialog box:

   figure2078
Figure: The template InputBox



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