The RTL based option creator is used
to instantiate the template optionInfo with a
Tk Window. The used creator window must have a
-class
property.
Acceptable Tk Windows are: toplevel for floating windows, and frame for embedded windows.
See the options manual entry for details on the standard options.
A valid Tcl-Interpreter. This interpreter must be
created through interp create
.
The current Tcl-Interpreter is used whenever the property is left empty.
A valid Tk Window. This »window« can be a a plain or composite window, too.
The geometry »manager« , used for the selected »window«.
The »assign«ed template or procedure. Identifies the code generation target.
The tooltip and status bar information for this »window«.
Tooltip and status messages are separated by »|« characters. The form is <status message > | <Tooltip message >.
Example 3.2. Help Message
option add *Menubar.options \ { Controls how items are applied| Forces the next window to be a child of the current one. Does ignore the management definitions!| | Geometry manager. Placed windows do not propagate their dimensions. Place is compatible with pack or grid in the same parent window.| Geometry manager. Pack is appropriated for very simple designs with less than three windows.| ... }
The Example 3.2, “Help Message” shows one status message and a series of tooltips. This »help« Option Database entry is used inside Jeszra’s »Options« menu. The tool tips are displayed for the menu entry under the cursor. An empty tool-tips used for separator menu entries.
A Option Database string property. The HTTP online help for this »window«.
Example 3.3. Using Online Help
# Online Help for Buttons. option add *Button.href {www.tcl.tk/button.html} # Answer to the F1-Key: bind Button <Key-F1> { # Launch a Web-Browser. # Tell the Browser what page shall # being displayed. set page [opget %W href {default page}] }
The label next to »-assign«. The label reflects the code model, used to generate the project. Possible values are: »Procedure« and »Template«.
Tcl-script, this is evaluated whenever a <Return> is received by the associated entry window. The internal method »eval« is used to evaluate this script. The script is formatted using »format« and the current value is used as its sole parameter.
Tcl-script, this is evaluated whenever a <Return> is received by the associated entry window. The internal method »eval« is used to evaluate this script. The script is formatted using »format« and the current value is used as its sole parameter.
Tcl-script, this is evaluated whenever a <Return> is received by the associated entry window. The internal method »eval« is used to evaluate this script. The script is formatted using »format« and the current value is used as its sole parameter.
List of geometry managers. The »Geometry« menu is created from this list. The menu is used to change the »window«’s geometry manager; for example from »pack« to »grid«.
Only general purpose geometry managers should be used in this list.
The standard geometry managers »pack grid place« are used as default.
»foreground« color for the contained entries.
State of the »Modify Content« checkbutton. The »Modify Content« checkbutton opens a content editor inside the editing section of the »Inspector« .
An editor implementation must exists inside the
namespace inspector::editors
to modify content.
ginspecteditors.tcl
implements
such editors for »hugelist«, »listbox« and
»rtl_mlistbox« and »text« windows. Text, canvas,
pathCanvas and TkZinc 3.3.4 windows are direct manipulated,
and do not require an embedded editor.
A Tcl Command, the »Modify Content« checkbutton invokes »-editcommand«. Usually a content editor will open. The same command is also used to hide the content editor.
Tcl Variable, boolean value, indicates whether an embedded content editor is used or not..
The command »optionInfo« creates a »optionInfo« window.
»optionInfo« is used as the window information area inside the Inspector(n) window. It allows the selection of a new window; the selection of another geometry manager; the definition of hypertext references, tool tip and status bar messages.
In addition, the window name and path can be changed.
A Window created through the optionInfo command exposes various functions. Using these functions has the following general form:
object.option(?arg, arg, ...?)
PathName is the same as the window path name. Option and the args determine the exact behavior of the command. The following commands are possible for this window:
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the optionInfo command.
Query or modify the configuration options of the window. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given window option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the optionInfo command.
Change geometry behavior. Revision : 10/12/2009, Roger
Manager was changed and maybe there are other widgets useing the old manager, which will conflict with the new one. Revision : 10/12/2009, Roger
stripes the info area (secondary constructor). Under non-aqua systems a sunken gradient is created inside this area to emphasis the browsing abillity. This gradient is cached inside the stripes namespace. Written : 11/13/2007, Roger Revision : 07/24/2008, Roger –tkpath 0.3.0 local caché
Allow leaving field without return. Revision : 10/12/2009, Roger
Rename current window, either its pathname or its real name. Revision : 10/12/2009, Roger
Close current instance. Displays or hides the information area.
The pack geometry manager is internally used for hidding and showing the information area.
A dummy window is used at the place of the Information area, whenever information is hidden. Otherwise the area would not collapse!
Related to the pack geometry manager.
General eval routine mainly used for help (statusline and tooltips), href and procedure/ component assingment. Revision : 10/12/2009, Roger
Browse locally for an alternative window.
Disable stripes for this dialog. Written : 11/13/2007, Roger