🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1665

How do you draw a resize bar?

#1665
From: Jonathan Miller
Date: Fri, 15 Mar 1991 09:06
18 lines
1187 bytes
Hi all,

I want to allow the user of my application to split the client window by
dragging a bar.  Ideally, I'd like this to work like Excel, where you
grab a little black spot in the scroll bar, and a line tracks the mouse
until the user lets go.  The line that tracks the mouse looks the same
as the border that tracks the mouse when you grab a window edge.

How do you draw (and undraw) this line?  It's not a line drawn in
inverse color.  There's some mask that seems to be drawn always in grey
(I can't tell for sure on my monitor), with the bits in between drawn in
inverse.  If it were just inverse, then the line wouldn't show up
patterned on a plain black or white background, right?

Anybody done this?  Thanks a lot!

-Jonathan Miller
jem@andrew.cmu.edu
Technical Details
Message-ID: <sbs8uCy00VpcQVEGgQ@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!gatech!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jem+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!gatech!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jem+
From: jem+@andrew.cmu.edu (Jonathan Miller)
Newsgroups: comp.windows.ms.programmer
Subject: How do you draw a resize bar?
Message-ID: <sbs8uCy00VpcQVEGgQ@andrew.cmu.edu>
Date: 15 Mar 91 09:06:22 GMT
Organization: Carnegie Mellon, Pittsburgh, PA
Lines: 18