Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.mac » modified sleep desk accessory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
modified sleep desk accessory [message #80772] Mon, 03 June 2013 23:56
edmoy is currently offline  edmoy
Messages: 14
Registered: June 2013
Karma: 0
Junior Member
Message-ID: <221@ucbopal.CC.Berkeley.ARPA>
Date: Tue, 15-Jan-85 22:00:40 EST
Article-I.D.: ucbopal.221
Posted: Tue Jan 15 22:00:40 1985
Date-Received: Fri, 18-Jan-85 01:43:56 EST
Organization: Univ. of Calif., Berkeley CA USA
Lines: 40

I've submitted a modified version of the sleep desk accessory to net.sources
(and also to info-mac).  Many thanks to Walter Smith, who submitted it
first (Walter, if you're out there, I've held off submitting the source
code until I OK it with you).

For those who missed it the first time, sleep is a desk accessory that blacks
out the screen, so that you can leave it on all the time and instantly start
where you left off.  Unlike turning down the brightness control, an apple is
constantly moved around the screen to remind you that it is still on.

The major change is that the desk accessory has been restructured so that
clicking the mouse button causes SystemClick to call CloseDeskAcc so that
memory for it is no longer locked.  Also, it uses my dynamic relocation
scheme (another letter from me to info-mac talked about this), so that it
doesn't cause the Mac to bomb when it is restarted after another desk
accessory has been opened.

An added feature (actual hiding a bug) is that if you hold the mouse button
down and release it in the area where the menu bar is normally, sleep
continues.  Unfortunately, if the cursor is already in the menu bar area
and you click the mouse, nothing happens (you just have to move the mouse
down).

I change the cursor to be a hilited close box with an arrow in it when you
hold the mouse button down.  Moving it into the menu bar area will cause the
cursor to disappear.

Like the note from Lonnie R. Abelbeck, I prefer a smoothly moving apple to
the jumping apple, so this version has that implemented.

The file is in binhex format and uses the standard "desk" application to
preview and install it.  Again, many thanks to Walter.

Edward Moy
Computing Services
University of California
Berkeley, CA  94720

edmoy@ucbopal
ucbvax!ucbopal!edmoy
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: mac-compatible design technique
Next Topic: flickering apple on screen
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Nov 22 06:50:20 EST 2024

Total time taken to generate the page: 0.05178 seconds