Tcl/Tk Search/Find Library Module

The Tcl/Tk search/find library module has the file name finddlg.tcl. This module contains procedures that present a find dialog and search through text widget contents for matching text.

Here is a list of procedures in the this module:

- finddialog
- findtext

# Module Dependencies

No other modules are required with this module.

# Module Definition Files

This module does not require any definition files.

# Module Procedures

## finddialog

    Declaration  : proc finddialog {textwidget}
    Parameters   :
          Name   : textwidget
          Type   : text widget name
    Description  : text widget to search

This procedure will present a non-modal find dialog and call the findtext procedure when a search is requested. The procedure exists when the dialog is destroyed (upon close).

## findtext

    Declaration  : proc findtext {entrywidget textwidget}
    Parameters   :
          Name   : entrywidget
          Type   : dialog name
    Description  : name of find dialog

          Name   : textwidget
          Type   : text widget name
    Description  : text widget to search

This procedure will search though the text widget either from the beginning of the text or from the last saved text search position.

Goto Top | Tcl Applications | Tcl Software Overview | Tcl Library Overview
| Future Lab Home | Contact Webmaster | Feedback

Copyright © 2006 Future Lab, Last Updated Jul 01, 2006