1. Re[2]: getClientRect
- Posted by aku saya <akusaya at gmx.net> May 17, 2003
- 425 views
------------3016019F3C67A940 But try the file attached. Resize the window until the Window matches the size of the toolbar. I got a number such as (0, 48) (372, 0) Shouldn't it become (0, 48) (372, 48)? Because the height is now 0 and y1 should be the same as y2 (both are 48)? Thanks! >> >> getClientRect ( integer ControlId ) >> Get uncovered portion of the client area. >> Returns: { x1, y1, x2, y2 } >> >> If I not mistaken, it should be >> {x, y, width, height} ?? >> D> Actually that turns out not to be the case. This routine returns {Left, Top, D> Right, Bottom} coordinates. Not the way I'd do it but that's Windows for D> you. D> Actually, I'll enhance the return value so it returns {Left, Top, Right, D> Bottom, Width, Height}. ------------3016019F3C67A940 Content-Type: application/octet-stream; name="getClientRectcoba.prj"
2. Re: Re[2]: getClientRect
- Posted by Derek Parnell <ddparnell at bigpond.com> May 17, 2003
- 413 views
----- Original Message ----- From: "aku saya" <akusaya at gmx.net> To: "EUforum" <EUforum at topica.com> Subject: Re[2]: getClientRect > > But try the file attached. > > Resize the window until the Window matches the size of the toolbar. > > I got a number such as > (0, 48) (372, 0) > > Shouldn't it become (0, 48) (372, 48)? > Because the height is now 0 and > y1 should be the same as y2 (both are 48)? > Aku, you are correct. The routine does return {Left, Top, Width, Height} already. I'll fix the documentation. ---------------- cheers, Derek Parnell