public inbox for
 help / color / mirror / Atom feed
From: Mo DeJong <>
Subject: Re: rebinding editor keys
Date: Mon, 16 Jul 2001 11:09:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Mon, 16 Jul 2001, Left Spin wrote:

> I'm new to Tcl/Tk. I'm rebinding keystrokes for a text widget in Source 
> Navigator.
> I'm trying to bind <Control-R> to a page up script.

The online Man page for bind might help in this case:

> I have to admit I don't understand how this bind syntax works. I found it in 
> some of the Source Navigator source code.
> I was thinking that maybe I could just map the keystroke to the already 
> defined page up functionality.

Try it without all the SN stuff. Just start up a wish shell and
play around with it.

% wish
% text .t 
% pack .t
% bind .t <Control-r> {puts "linesperpage is [%W cget -height]"}

(Move mouse into text widget and press Ctrl-R)
linesperpage is 24


      reply	other threads:[~2001-07-16 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16 10:58 Left Spin
2001-07-16 11:09 ` Mo DeJong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).