🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25524

Re: Dragging Icons

#25524
From: Paul Smethers
Date: Mon, 22 Feb 1988 07:41
36 lines
2191 bytes
In article <8196@eleazar.Dartmouth.EDU> borscht@eleazar.Dartmouth.EDU (Andy J. Williams) writes:
>[Fodder for Linear Digestius Insipidieous]
>
>In article <20958@bbn.COM> franco@bbn.com (Frank A. Lonigro) writes:
>
>>To all LSC users:
>>	I'm new to programming the MAC and have a request.  Could some
>>of you send me your favorite piece of code for choosing and dragging
>>ICONs with the mouse(not the whole program, just that section of code).
>
>
>I need to do the same thing if LightSpeed Pascal.  I am trying to set up an
>environment which is very like the finder.  Anyone have snatches of code for
>scrolling, clicking, and Masking icons?  (NOTE: ICON not ICN#)

I haven't done the exact code that you are looking for, but I might be able
to guide you in the right direction.

First of all, to perform operations on the desktop (which is against Apple's
user interface standards in the first place), you have to work in the desktop's
window manager port, which is the port you get if you call GetWMgrPort() the
first thing after initializing your Inside Mac managers.  I'm not sure, but
pretty sure that this port can then be used by DragGrayRgn() which is
documented in the Window Manager of Inside Macintosh.

I wish I had the exact code for you, but if you follow up on these two leads
then you may be able to figure out how to drag icons on the desktop.  If these
fail, then you may try using a separate window for each icon, and using
DragWindow to move them if they are pressed on.  I'm not sure, but it might be
that DragWindow will work for plainDBox windows to move them from their
content area (you might try it and get back to me, I'd be curious).

Good Luck.

Paul Smethers
SmethersBarnes
Technical Details
Message-ID: <503@psu-cs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!uoregon!omepd!psu-cs!smethers
References: <20958@bbn.COM> <8196@eleazar.Dartmouth.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!uoregon!omepd!psu-cs!smethers
From: smethers@psu-cs.UUCP (Paul Smethers)
Newsgroups: comp.sys.mac
Subject: Re: Dragging Icons
Message-ID: <503@psu-cs.UUCP>
Date: 22 Feb 88 07:41:10 GMT
References: <20958@bbn.COM> <8196@eleazar.Dartmouth.EDU>
Reply-To: smethers@psu-cs.UUCP (Paul Smethers)
Organization: SmethersBarnes
Lines: 36