TABLE OF CONTENTS


tracevar

NAME

::guib::moduleObj::tracevar -- the tracevar GUIB keyword

USAGE

tracevar varIdent mode script

DESCRIPTION

-- GUIB keyword !!!

    Keyword "tracevar" is meant for tracing the variables. It happens
    many times, that specifying some value for a particular variable
    makes some new widget to appear and others to disappear. The purpose 
    of the tracevar proc is just that. See also the "widget" and 
    "tableconfigure" as well as "varvalue", "varref" and "varset" procs.

ARGUMENTS

varIdent -- the GUIB-variable's identifier mode -- is the trace mode for the variable (r, w, or u).

                See also the manual of the Tcl trace command.

script -- this is a script to execute upon the trace event.

RETURN VALUE

None.

EXAMPLE

tracevar myVarIdent1 w {

       if { [varvalue varIdent1] == "yes" } {
          widget enable  varIdent2a
          widget disable varIdent2b
       } else {
          widget disable varIdent2a
          widget enable  varIdent2b
       }

}