papa@pollux.usc.edu (Marco Papa) (03/13/89)
[this follow-up article is moved to compc.sys.amiga.tech, given the cobtent] In article <1524@csd4.milw.wisc.edu> trantow@csd4.milw.wisc.edu (Jerry J Trantow) writes: >my window title bars. First problem is although my gadget gets tucked >into the window border, when I click on it, the drag bar gets activated. I implemented a window titlebar gadget similar to the one in WordPerfect (actually it is practically identical :-). Not much was needed. The gadget is declared as: ... GADGIMAGE+GRELRIGHT, RELVERIFY+TOPBORDER ... It is activated AFTER the window is opened (with GADGETUP among others) as: AddGadget(window, &mygad, 0L); RefreshGList(&mygad, window, NULL, (SHORT) 1); Then in the mail loop, I look for a GADGETUP, and check if it comes from my titlebar gadget. If so, I and then handle the gadget. That's it. Works like a champ. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=