Path: utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@dront.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <1990Oct16.125443.27065@nada.kth.se> Date: 16 Oct 90 12:54:43 GMT References: <90287.182643CXT105@psuvm.psu.edu> Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 45 > Problem: I want a resizable window, with the grow box in the lower right > and all that, but I do not want any scroll bars. I JUST want the box that > indicates the window is resizable. To graw a resize icon without the scrollbar borders: 1) you could use FrameRect to draw the rect border and the small rects (or your own SICN or ICON) 2) You can do this: void DrawMyGrow(WindowPtr myWindow) { PenState theState; RgnHandle foo = NewRgn(); Rect r; GrafPtr aPort; GetPort(&aPort); SetPort(myWindow); GetClip(foo); GetPenState(&theState); PenNormal(); SetRect(&r, myWindow->portRect.right - 15, myWindow->portRect.bottom - 15, myWindow->portRect.right, myWindow->portRect.bottom); ClipRect(&r); DrawGrowIcon(myWindow); SetClip(foo); SetPenState(&theState); DisposHandle(foo); SetPort(aPort); } 3) You can just erase the lines after a simple call to DrawGrowIcon. Happy hacking ! h+ h+@nada.kth.se "Moof!(tm)"