Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!caen!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.programmer Subject: Re: Some Intuition/Graphics questions Message-ID: <28394.27aedc9e@kuhub.cc.ukans.edu> Date: 5 Feb 91 22:26:06 GMT References: <1991Jan20.022627.13975@cs.dal.ca> <7625@sugar.hackercorp.com> <1991Feb2.194853.27355@zorch.SF-Bay.ORG> Organization: University of Kansas Academic Computing Services Lines: 23 > I'd really like a resizing gadget that could be used for a borderless window > with the following characteristics:...many nice features of agadget... At present, it isn't really possible to do much to the system gadgets. But you could do your own with a gadget with an empty image, and appropriate hitbox. Make it GRELRIGHT, GRELBOTTOM, GADGIMMEDIATE, RELVERIFY, and FOLLOWMOUSE (excuse minor errors, off the top of my head). Then when you get the GADGETDOWN message, follow the mouse events, draw a "rubberband" box with Draw() or DrawPoly() and mode COMPLEMENT to show the border, and call ResizeWindow() when you the the GADGETUP message. (I use the COMPLEMENT trick to make my window Open/Closes do a Zoom, ala the Mac) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: mgooderum \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~