Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: How to setup window border gadgets? Message-ID: <17127@cbmvax.commodore.com> Date: 5 Jan 91 01:20:54 GMT References: <1374@ewu.UUCP> <1990Dec30.180904.19241@athena.mit.edu> <9578.tnews@templar.actrix.gen.nz> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 21 In article <9578.tnews@templar.actrix.gen.nz> jbickers@templar.actrix.gen.nz (John Bickers) writes: >> >I am trying to put a boolean gadget into the top border of a window > One problem I had with trying to do this was based on window > activation. When the window was deactivated, my iconify gadget would > get "shadowed", and when the window was reactivated the drag bar would > be drawn over the gadget altogether. > > A solution in the end was to detect when the window got (de)activated, > and redraw the gadget directly. This may not solve all your problems, but you should set TOPBORDER if it's going to live in the top border. There may be other refresh issues to deal with. -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com BIX: rjesup The compiler runs Like a swift-flowing river I wait in silence. (From "The Zen of Programming") ;-)