🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #146

Re: Clicking on Irregular Shapes

#146
From: Stuart H. Ferguson
Date: Fri, 23 Jun 1989 06:58
21 lines
1482 bytes
+-- rap@ez.ardent.com (Rob Peck) writes:
| In article <7110@cbmvax.UUCP> steveb@cbmvax.UUCP (Steve Beats) writes:
| >In article <42700015@m.cs.uiuc.edu> schwager@m.cs.uiuc.edu writes:
| >>Given an irregularly shaped object on a Screen, how can one tell if
| >>the mouse button has been pressed inside of it?  I don't want a box all
| >>around or inside it; I want the object and exactly the object.  
| 
| I had this same thought, but it was pointed out to me that starting with
| 1.2, and documented in the 1.2 enhancer docs (though I dont have em here),

I do.  To coin a phrase: "It's in there!"  Check out section 4.6.2 --
Masked Gadgets.  To summarize, there's a "BoolInfo" structure that
hangs off the SpecialInfo pointer in a boolean gadget.  This struct
points in turn to an Intuition "Image" struct that defines your mask
region.

The refreshing and highlighting don't honor the mask, it seems, so these
gadgets should probably be "quiet" and let you do your own highlighting.
-- 
		Stuart Ferguson		(shf@well.UUCP)
		Action by HAVOC
Technical Details
Message-ID: <12341@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!well!shf
References: <42700015@m.cs.uiuc.edu> <7110@cbmvax.UUCP> <7007@ardent.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!well!shf
From: shf@well.UUCP (Stuart H. Ferguson)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Clicking on Irregular Shapes
Message-ID: <12341@well.UUCP>
Date: 23 Jun 89 06:58:15 GMT
References: <42700015@m.cs.uiuc.edu> <7110@cbmvax.UUCP> <7007@ardent.UUCP>
Reply-To: shf@well.UUCP (Stuart H. Ferguson)
Organization: The Blue Planet
Lines: 21