🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2573

Zero-size min. box for WinTrackRect?

#2573
From: Peter M. Jansson
Date: Tue, 23 Apr 1991 17:05
19 lines
1236 bytes
I recently wrote an application for which I used WinTrackRect
which was a big help, but I found that I could not
get the tracking box to reflect through the origin.  In my
application, the user could only move the tracking box along
the x-axis.  I want the user to be able to push button 1 and
drag the box either right or left.  I tried the _LEFT and _RIGHT
(I don't exactly remember the names of the constants) specifiers,
and both, and the behavior I was able to get was the box expanding
to the right, or to the left of the origin, but not being able
to cross the origin.  I think this is because I specified a
minimum x-axis size of 1, but when I tried zero, the function
behaved oddly.

Has anyone else run across this problem?  Does anyone have a
solution short of writing my own rubberbanding/mouse-tracking
routine?

Thanks,
        Pete.
Technical Details
Message-ID: <7a0u11w163w@roadnet.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!roadnet!pmj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!roadnet!pmj
From: pmj@roadnet.com (Peter M. Jansson)
Newsgroups: comp.os.os2.programmer
Subject: Zero-size min. box for WinTrackRect?
Message-ID: <7a0u11w163w@roadnet.com>
Date: 23 Apr 91 17:05:05 GMT
Organization: Roadnet Technologies, Inc.
Lines: 19