Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping tab in text box

Status
Not open for further replies.

fdservices

IS-IT--Management
Mar 10, 2005
52
FR
I know this must be simple, but, I have a text widget and would like to trap a tab entry within the text such that:

Pressing tab executes a tcl script but does not enter a tab character in the text.

A simple "bind" enters the tab character and then runs the script.

Thanks

Andrew
 
Answered myself.

Use bind but issue a break command in the script to stop the processing of the character in the text widget

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top