I am confused.
What exactly does the API routine WinSetWindowBounds(WinHandle,
Rectangle) really do? According to the spartan documentation, here is
its purpose:
"Set the bounds of the window to display relative coordinates."
Huh? Suppose I have created an offscreen window (MyOffscreenWindow) of
size 100x100. I assume before I make any changes that this window's
bounds are topLeft=(0,0) and extent=100x100. Now suppose I invoke
WinSetWindowBounds(MyOffscreenWinH, NewBounds), where
NewBounds.topLeft=(20,20), and NewBounds.extent=50x50. What exactly did
I just do to my offscreen window?
Did I just shrink it? Did I just set a clipping rectangle with origin
(20,20) and extent 50x50? Did I just establish some kind of coordinate
translation scheme in which paints to the virtual coordinate (30,30) are
translated to (10,10) in "actual" offscreen window coordinates? What
would it mean if I set the "bounds" of my window to be a rectangle
LARGER than the allocated size (100x100)
of my offscreen window?
I guess what I'm wondering is, how is this new "bound" used by the
framework after I set it with WinSetWindowBounds()?
A thousand thanks to anyone who can help!
-chris
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/