🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by bill Wed, 09 Sep 1992 15:36
How do I make a window respond to nothing?
#879
Author: bill
Date: Wed, 09 Sep 1992 15:36
13 lines
733 bytes
I would like to create a panel to be used as a background and thus not  
respond to any thing (keyboard, mouse, ect) ...ie never become the key  
window.

I can make the window easily enough via IB but I did not see a method  
which would make the window immune to the mouse or keyboard.

Any help would be appreciated.


Thanks in advance.

		Bill
Re: How do I make a window respond to nothing?
#1078
Author: Gregory H. Anderson
Date: Tue, 15 Sep 1992 03:08
18 lines
1221 bytes
In article <1992Sep9.153612.10324@aio.jsc.nasa.gov>  
bill@epnxt.jsc.nasa.gov writes:
> I would like to create a panel to be used as a background and thus not  
> respond to any thing (keyboard, mouse, ect) ...ie never become the key  
> window.
> 
> I can make the window easily enough via IB but I did not see a method  
> which would make the window immune to the mouse or keyboard.
> 
Under program control, use "setEventMask:" to turn off all events you  
don't want to receive. The Window class docs show a list of all events and  
which ones are enabled by default. You just need a different mask.

--
Gregory H. Anderson          | "We're very tolerant around here,
Benevolent Dictator-for-Life |  being only amateurs ourselves."
Anderson Financial Systems   | - Tortoise (Godel, Escher, Bach)
greg@afs.com  (Nextmail OK)  | 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads