🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.news
Article #451

Input Focus problem under OW 3.0

#451
From: Don Kneller
Date: Wed, 02 Sep 1992 22:47
39 lines
1609 bytes
I have encountered a strange problem with Input Focus that is
perplexing. I have an subclass (called a "view") of ClassBaseWindow
that has as part of its methods:

	/NewInit {
		/NewInit super send
		/Keyable? true store
	} def

	/KeyStart {	% event => [] true
		pop [ /StandardKey ] true
console (KeyStart\n) [] fprintf
	} def

	/StandardKey {	% event => -
		pop
console (StandardKey\n) [] fprintf
	} def

An event manager is created, and the instance of the view is
is created and activated:

	emgr /activate view send

Now here is the problem:  Under both OW 2.0 and OW 3.0 I see a "KeyStart"
message every time the mouse enters the view. As well, the input focus
bar changes to show I have the focus.  Under OW 2.0, each press of a
standard key brings up a "StandardKey" message.  BUT under OW 3.0 each
press results in a beep.

Has anyone seen anything like this before?  Please let me know.  Thanks.

	Don Kneller
	University of California, San Francisco
	kneller@picasso.mmwb.ucsf.edu

--
Donald G. Kneller
University of California, San Francisco
Technical Details
Message-ID: <kneller.715474078@dufy.mmwb.ucsf.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!cgl!dufy.mmwb.ucsf.edu!kneller

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!cgl!dufy.mmwb.ucsf.edu!kneller
From: kneller@dufy.mmwb.ucsf.edu (Don Kneller)
Newsgroups: comp.windows.news
Subject: Input Focus problem under OW 3.0
Summary: Different result in OW 2.0 and OW 3.0 with same TNT code.
Message-ID: <kneller.715474078@dufy.mmwb.ucsf.edu>
Date: 2 Sep 92 22:47:58 GMT
Sender: news@cgl.ucsf.edu (USENET News System)
Organization: UCSF Computer Graphics Lab
Lines: 39