Re: Win32lib System Metrics
- Posted by Brian Broker <bkb at CNW.COM> Aug 18, 2000
- 436 views
On Fri, 18 Aug 2000 11:34:52 +1000, Derek Parnell wrote: >I believe that is a bug in getSize. If the object was a window it returned >{top, left, right, bottom}, but for all other objects it returned {top, >left, width, height}. If your window was positioned at (0,0) then this is >equivalent. I've "fixed" this bug in my copy of win32lib and I'd like to >hear if this is going to break any existing code. My opinion is that the >function should return {top, left, width, height} for all objects and not >make a window an exception. Well then, I guess that would deprecate 'getExtent'... Another thing that always bothered me was the 'getClientRect' function. As far as I can tell, the first two elements will always be zero, so why are they returned? (or could somebody give me an example where the first two elements are not zero?) I guess this one doesn't matter so much since changing this might break too much code... -- Brian