The RTL based option creator is used
to instantiate the template gsearch 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.
Defines the command to be executed for every selection.
The used regular expression, see re_syntax for details on regular expressions.
Defines what search »method« will be used.
Possible values are:
name, parent, class, containing, toplevel, manager, rootx, rooty, atomname, cells, ismapped, screen, screencells, viewable, visualid, atom, x, y, id, background, foreground, selectcolor, troughcolor, selectbackground, selectforeground, insertbackground, insertforeground, highlightcolor, highlightbackground, activebackground, activeforeground, clientbackground, disabledforeground, disabledbackground, readonlybackground, gridcolor, font, text, label, title, image, iconfont, token, href, help, wrap, wraplength, aspect, justify, selectimage, headerfont, menu, width, height, borderwidth, highlightthickness, elementborderwidth, activeborderwidth, selectborderwidth, insertborderwidht, scrollwidth, relief, menu, takefocus, tearoff, indicatoron, cursor, accelerator, pad, iborderwidth, irelief, setgrid, insertwidth, direction, command, variable, onvalue, offvalue, textvariable, value, exportselection, orient, listvariable, selectmode, state, default, activestyle, validate, validatecommand, invalidcommand, gridsize, hidetitle, ensure, require, show, undo, package, hidecommand, vectorsize, sides, type, sort, widget, offset, taboffset, bitmap, anchor, underline, compound, activerelief, padx, pady.
Specifies the style in which to draw the active element. This must be one of dotbox (show a focus ring around the active element), none (nospecial indication of active element) or underline (underline the active element). The default is underline.
Specifies one of several styles for manipulating the selection. The value of the option may be arbitrary, but the default bindings expect it to be either single, browse, multiple, or extended; the default value is browse.
The »gsearch« command creates a gsearch window.
The »gsearch« dialog is used to search for the value for a specific window property.
The various used search methods are defined through
vgfind.tcl
; there is also an
access method defined inside of gsearch.tcl
:
search-selectfcn, this procedure is
the default search call back.
The search is conducted as a conventional regular expression. Successive searches are also possible, but are not yet recorded.
A Window created through the gsearch 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 gsearch 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 gsearch command.
Call the callback procedure for each select operation. Taken from vgsearchifc.tcl,
Author : Arndt Roger Schneider mail-to : roger.schneider@addcom.de
Written : 1998, Roger Revision : 06/06/2008, Roger --cleansed »var« Copyright © 2005-2008 Arndt Roger Schneider Copyright © 1998-1999 Patzschke + Rasp GmbH 1999 Patzschke + Rasp Software AG
Search for all windows featuring the property denoted by the searchmethod.
Rewritten : 05/21/2008, Roger
Use the previous result, and repeat with another expression. Taken from vgsearchifc.tcl,
Author : Arndt Roger Schneider Mail-to : arndt.roger@web.de Written : 1998, Roger Copyright © 2005-2008 Arndt Roger Schneider Copyright © 1998-1999 Patzschke + Rasp GmbH 1999 Patzschke + Rasp Software AG License: Artistic License
Select every element inside the listbox. Rewritten : 11/12/2007, Roger