Re[2]: getClientRect
- Posted by aku saya <akusaya at gmx.net> May 17, 2003
- 424 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"