🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #13162

Re: v8n211, resizing sunview windows

#13162
From: Daryl Krauter
Date: Wed, 06 Dec 1989 16:13
33 lines
1205 bytes
You need to put an interposer on the frame to prevent it from resizing.
Below, you will find the necessary incantations.

daryl krauter
electronic data systems (eds)
(214) 490-2737

init_frame()
{
	Notify_value w00015_frame_interposer();

	frame = window_create(NULL, FRAME, 0);
	notify_interpose_event_func(frame,
								w00015_frame_interposer,NOTIFY_SAFE);
}

Notify_value
w00015_frame_interposer(client, event, arg, type)
	Window client;
	Event *event;
	Notify_arg arg;
	Notify_event_type type;
{
	switch (event_id(event)) {
	case MS_LEFT:
	case MS_MIDDLE:
		if (event_ctrl_is_down(event))
			return NOTIFY_DONE;
		break;
	}

	return notify_next_event_func(client, event, arg, type);
}
Technical Details
Message-ID: <3783@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request
From: texsun!edsr!houston!dek@cs.utexas.edu (Daryl Krauter)
Newsgroups: comp.sys.sun
Subject: Re: v8n211, resizing sunview windows
Keywords: Windows
Message-ID: <3783@brazos.Rice.edu>
Date: 6 Dec 89 16:13:43 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 33
Approved: Sun-Spots@rice.edu
X-Refs:  Original: v8n211
X-Sun-Spots-Digest: Volume 8, Issue 217, message 6 of 23