unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: scroll-bar-toolkit-scroll
Date: Fri, 09 Aug 2002 03:12:56 -0400	[thread overview]
Message-ID: <200208090712.g797CwY11593@rum.cs.yale.edu> (raw)
In-Reply-To: 86d6t4glcx.fsf@gerd.free-bsd.org

> >     IIRC, the scroll bar callback is invoked with action information only,
> > Could you explain what "action information" means?
> I meant "user action".  In the Motif case, for example the scroll bar
> callback in invoked for user action meaning "line down", "page up" etc.

Indeed.  And the translation from up/down/move X-events into those
"user actions" depends on the toolkit and is mostly outside the
control of Emacs.  In the case of Xaw3d, this translation can
be customized by the user via Xresources with something like:

*Scrollbar*translations:       #override \
     <Btn1Down>:   StartScroll(Forward) NotifyScroll(Proportional) \n\
     <Btn2Down>:   StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
     <Btn3Down>:   StartScroll(Backward) NotifyScroll(Proportional) \n\
     <Btn2Motion>: MoveThumb() NotifyThumb() \n\
     <BtnUp>:      EndScroll()

Note that just like all those Xresources things, it doesn't always
work with all applications, or you sometimes need to explicitly
specify the application name because of precedence between overlapping
specifications, ...


	Stefan

  parent reply	other threads:[~2002-08-09  7:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29  1:12 scroll-bar-toolkit-scroll Richard Stallman
2002-07-29 10:51 ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-07-30  0:59   ` scroll-bar-toolkit-scroll Richard Stallman
2002-07-30  9:12     ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-07-31  5:54       ` scroll-bar-toolkit-scroll Richard Stallman
2002-07-31 11:58         ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-08-01 16:51           ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-02 10:19             ` scroll-bar-toolkit-scroll Gerd Moellmann
2002-08-09  7:07             ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-09  7:12           ` Stefan Monnier [this message]
2002-08-12 17:07             ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-12 17:14               ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-13 22:46                 ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-14 22:25                   ` scroll-bar-toolkit-scroll Stefan Monnier
2002-08-15 19:54                     ` scroll-bar-toolkit-scroll Richard Stallman
2002-08-16 16:10                       ` scroll-bar-toolkit-scroll Stefan Monnier

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=200208090712.g797CwY11593@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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