🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19503

Re: enabling the correct entries in the 'Edit' menu

#19503
From: Dale M. Arends
Date: Thu, 24 Sep 1987 16:03
30 lines
1879 bytes
In article <876@cadnetix.UUCP> jva@cadnetix.UUCP (Joe VanAndel) writes:
>I have a question about enabling/disabling the standard 
>'cut/copy/paste/clear' menu items under the 'Edit' menu.  If
>I have an application that has multiple windows, where one window
  [deleted]
>I've probably gone down a blind alley, but could someone tell me
>the right way?
>
>Thanks in advance!
>-- 
>	Joe VanAndel  		UUCP:		hao!ico!cadnetix!jva

I have a program that has the same requirements.  The way I solved
it, and I don't guarantee that this is the best way, is to keep an
eye on the value returned by FrontWindow().  If it points to one
of my windows that needs the Edit items or a desk accessory, I
make sure that the Edit items are enabled.  Otherwise, I disable
the Edit items.

Additionally, (insurance you know) I make a practice of enabling the
Edit items before launching a desk accessory and checking FrintWindow()
(oops, FrontWindow()) when Close is selected from the menubar.

-- 
--
		Dale M. Arends  (Fujitsu America Inc., San Jose, Calif.)
		seismo!amdahl!fai!dalea

The opinions expressed herein do not necessarily reflect those of my employer.
They are entirely my own if they make sense and I disavow them if they don't.
Technical Details
Message-ID: <653@fai.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!think!ames!ptsfa!hoptoad!unisoft!cerebus!fai!dalea
References: <876@cadnetix.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!think!ames!ptsfa!hoptoad!unisoft!cerebus!fai!dalea
From: dalea@fai.UUCP (Dale M. Arends)
Newsgroups: comp.sys.mac
Subject: Re: enabling the correct entries in the 'Edit' menu
Message-ID: <653@fai.UUCP>
Date: Thu, 24-Sep-87 12:03:32 EDT
Article-I.D.: fai.653
Posted: Thu Sep 24 12:03:32 1987
Date-Received: Sun, 27-Sep-87 01:28:51 EDT
References: <876@cadnetix.UUCP>
Reply-To: dalea@fai.UUCP (Dale M. Arends)
Distribution: world
Organization: Fujitsu America, Inc.
Lines: 30
Keywords: menu, edit, cut, paste