From xemacs-m  Thu Mar 20 16:12:28 1997
Received: from black-ice.cc.vt.edu (root@black-ice.cc.vt.edu [128.173.14.71])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA17808
	for <xemacs-beta@xemacs.org>; Thu, 20 Mar 1997 16:12:27 -0600 (CST)
Received: from black-ice.cc.vt.edu (valdis@LOCALHOST [127.0.0.1])
	by black-ice.cc.vt.edu (8.8.5/8.8.5) with ESMTP id RAA31348;
	Thu, 20 Mar 1997 17:12:20 -0500
Message-Id: <199703202212.RAA31348@black-ice.cc.vt.edu>
X-Mailer: exmh version 2.0gamma 1/27/96
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: xemacs-beta@xemacs.org
Subject: Re: Lucid scrollbars - dimples? 
In-Reply-To: Your message of "Thu, 20 Mar 1997 13:36:52 PST."
             <199703202136.NAA06757@xemacs.eng.sun.com> 
From: Valdis.Kletnieks@vt.edu
X-Url: http://black-ice.cc.vt.edu/~valdis/
References: <199703202121.QAA16700@black-ice.cc.vt.edu>
            <199703202136.NAA06757@xemacs.eng.sun.com>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="==_Exmh_1569577096P";
	micalg=pgp-md5; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit
Date: Thu, 20 Mar 1997 17:12:19 -0500

--==_Exmh_1569577096P
Content-Type: text/plain; charset=us-ascii

On Thu, 20 Mar 1997 13:36:52 PST, Martin Buchholz said:
> Valdis> Emacs*XlwScrollBar.background:                  #2c95bf
> Valdis> Emacs*XlwScrollbar.troughColor:                 #257fa2
> Valdis> Emacs*XlwScrollbar.sliderStyle:                 dimple
> Valdis> Emacs*XlwScrollBar.translations: #override \n\
> 
> Two of your `b's aren't capitalized.

Gaak. ;)  I *hate* the damned sTudlyScrewyMotifCaps style. Can't it be
case-insensitive? ;)

In any case, I think my copy of xlwscrollbar is haunted, as fixing this
*still* didn't create a dimple.  Also, I think I reported a while ago
that the keyboard would occasionaly lock up and lose focus - that seems
to be related to the PageUpOrLeft() override translation.  It's weird -

Emacs*XlwScrollBar.translations:        #override \n\
  <Btn1Down>:     PageDownOrRight()    \n\
  <Btn3Down>:     PageUpOrLeft()

If I go to the 'About Emacs' screen, hitting PageUpOrLeft() locks the
keyboard, but PageDownOrRight() will reset it.  It even affects other
windows on the same screen.  I suspect a broken keyboard grab (but have
NO idea why a scrollbar would do that).

I see that in xlwscrollbar.c, PageDownOrRight() and PageUpOrLeft() both
call Select(), which does a XtGrabKeyboard() (!aha! ;).  If *anybody* can
explain to me what the switch (sb_button) on line 1642 actually *DOES*
(given that all 3 cases hit the *same* code, and there's no 'default:' tag),
I'll feel much better.  Also, I don't *see* why the one releases the
keyboard, and the other doesn't.

Blech.  Am I coherent?  Is all this nit-finding helping The Cause? ;)
Or am I merely living in psychosis caused by trying to use the IBM
compiler? ;)

/Valdis



--==_Exmh_1569577096P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.2

iQCVAwUBMzG2QNQBOOoptg9JAQE4HgP6Am1G0bnLHj3WsQKpLoV9zXDoXdQVkKIO
TeTdIJtrNb0cDG92E/5T+Z1L5qYGJ0oREeQcXdzzDIusN7u6H/TuHqt8FQExtDpR
TXp7gEBpvS5bAAViqVB/OwYb0dimrupEkEnG3yY7aF5Q524gFT5yL01iG0iPQWoR
nQJ9M9inh9E=
=VYkn
-----END PGP MESSAGE-----

--==_Exmh_1569577096P--

