Showing posts with label Rich Text Format. Show all posts
Showing posts with label Rich Text Format. Show all posts

Friday, August 28, 2020

August News

A bit late, but a couple of updates in July. The text search applying to whole words may present some issues where pattern matching on sub-strings was used. A later version may see the introduction of a -subString option.

 2020-07:
    gnocl::label
        o new options: -editable, boolean. Use in conjunction with the edit command.
         -onEnter, -onLeave, allows reaction to potential label rollover effects.
    gnocl::text
        o search will now ignore word embedded search patterns, i.e. search whole word only.

Wednesday, January 13, 2010

New Option - gnocl::text -text

Job done. Why include this switch? Suppose a script has the following line of code, perhaps as part of a feeback process in which the text widget is only needed for feedback purposes:

set msg [glob [pwd]/*.*]
set win [gnoc::window]
gnocl::window -child $win
$win insert end $msg

Why not simply the process? to just:

set msg [glob [pwd]/*.*]
gnocl::window -child [gnocl::text -text $msg]

In fact, when there's no need to use rich text formatting this is really useful as the underlying Gtk+ library function will delete the buffer contents too!




Reblog this post [with Zemanta]

json_shell_utils.tcl