unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Binding a command to the down-event of a toolbar button
@ 2006-03-26  5:10 Stefan Monnier
  2006-03-28 19:33 ` Richard Stallman
  0 siblings, 1 reply; 45+ messages in thread
From: Stefan Monnier @ 2006-03-26  5:10 UTC (permalink / raw)



I'm trying to add tool-bar buttons for "fast forward" and "rewind" in my
MPC.el package, and the way I expected it would work is that down-mouse-1 on
those buttons would start the ffwd/rewind and the up event would stop it.

But looking at the tool-bar bindings (I wasn't familiar with the tool-bar
until recently), I see that I can not distinguish a "down" event from
any other.  Basically, I can only bind a command to a "click".

Am I missing something?  If not, should we add a note anout it in the
TODO file?  I'd expect each button to not have just a command associated
with it, but a complete keymap instead (I wouldn't necessarily try to
support non-mouse bindings in those keymaps, tho) so I could have different
bindings for clicks, double clicks, mouse-1, mouse-2, ...


        Stefan

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2006-04-06 15:37 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26  5:10 Binding a command to the down-event of a toolbar button Stefan Monnier
2006-03-28 19:33 ` Richard Stallman
2006-03-30  9:56   ` Mathias Dahl
2006-03-30 22:39     ` Stefan Monnier
2006-03-30 23:03       ` Drew Adams
2006-03-31  7:58         ` Eli Zaretskii
2006-03-31 20:20           ` Richard Stallman
2006-04-01 11:43             ` Eli Zaretskii
2006-03-31 17:28         ` Richard Stallman
2006-03-31 18:35           ` Drew Adams
2006-04-01 11:45             ` Eli Zaretskii
2006-04-01 16:21               ` Drew Adams
2006-04-02 20:38                 ` Richard Stallman
2006-04-01 13:46             ` Richard Stallman
2006-04-01  3:12           ` M Jared Finder
2006-04-01 20:28             ` Richard Stallman
2006-04-01 20:58               ` M Jared Finder
2006-04-03  1:09                 ` Richard Stallman
2006-04-03  4:14                   ` M Jared Finder
2006-04-03 18:24                     ` Richard Stallman
2006-04-04  2:13                       ` M Jared Finder
2006-04-04 19:57                         ` Richard Stallman
2006-04-05  6:04                           ` M Jared Finder
2006-04-05 19:06                             ` Richard Stallman
2006-04-06  5:40                               ` M Jared Finder
2006-04-06 15:37                                 ` Richard Stallman
2006-03-31 10:18       ` Jason Rumney
2006-03-31 11:01         ` David Kastrup
2006-03-31 14:34         ` Stefan Monnier
2006-04-01 13:45           ` Richard Stallman
2006-04-01 16:27             ` Stefan Monnier
2006-04-01 13:45         ` Richard Stallman
2006-04-01 19:01           ` Jason Rumney
2006-04-02 20:38             ` Richard Stallman
2006-04-02 21:29               ` Jason Rumney
2006-04-03  3:24                 ` Richard Stallman
2006-03-31 17:28     ` Richard Stallman
2006-04-01  0:55       ` Kevin Rodgers
2006-04-01  1:12         ` Robert J. Chassell
2006-04-01  3:59         ` Stefan Monnier
2006-04-01 20:28           ` Richard Stallman
2006-04-03  2:01             ` Stefan Monnier
2006-04-03 13:51               ` Richard Stallman
2006-04-03 18:24                 ` Richard Stallman
2006-04-01 20:28         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).