Subject: 'Attaching' a tag to a text widget - DN [1]


C VYLLIOTIS <vylliotc@aston.ac.uk> - 22 Feb 2000 - comp.lang.tcl

 Two weeks ago I posted a similar question, but as I got no reply back,
 I thought of trying again, as this time I may be lucky. :-)
 I am currently developing an application which involves input of
 teaching material using a canvas and a text widget. My question is
 whether there is a way, of 'attaching', sort of speak, a tag like
 'wrap', where wrap is defined, thus:

 $t tag configure wrap -wrap word

 to the whole of  the text widget.

 I would like to be able to set this tag and attach it to the widget
 while setting up my text object and BEFORE the user has entered any
 text. That tag would need to be applied to the whole of the widget, so
 that when the user types in something, the widget would behave according
 to the predefined tag(s). In a similar way I would like to be able to
 allow the user to enter bold text by the click of a button, which would
 have a command associated with it, that will look like: $t tag add bold
 ?????

 Your help would be greatly appreciated.

Last modified
2000-03-11

(195.108.246.55)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated