Re: Read-only text box
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Read-only text box

From: ab <koppalaby@gmail.com>
Date: Wed May 25 2005 - 14:37:04 CEST

nornagon wrote:
> Hi. I'm looking for a satisfactory way in which to create a read-only
> text box. i.e, the user should be able to select text, copy it, etc.
> etc. but NOT insert text in any way.
>
> The way I'm using at the moment blocks all Key events using
> callback_break, but this has the undesirable effect of neutralising Ctrl+C.
>
> Any thoughts?
> --
> - nornagon

frame .textframe
text .textframe.filetext
.
.
.textframe.filetext configure -state disabled

# This will make the editor read only.
Received on Thu Sep 29 14:18:57 2005