Re: Win32lib System Metrics
- Posted by Brian Broker <bkb at CNW.COM> Aug 17, 2000
- 445 views
On Thu, 17 Aug 2000 20:18:46 -0400, Brian Broker wrote: >On Fri, 18 Aug 2000 09:57:34 +1000, Derek Parnell wrote: > >>Hi Brian (Broker) >>can I add your setClientRect to the standard win32lib? I've also reduced it >>by another line. >> >>>------------------------------ >>>procedure setClientRect( integer id, integer width, integer height ) >>> sequence diff >>> >>> -- get current window size and subtract client size >>> diff = getSize( id ) - getClientRect( id ) >>> -- add difference to specified window size >>> setSize( id, width+diff[3], height+diff[4] ) >>>end procedure > >Right on... I think it would be a good addition. Since there's >a 'getClientRect' I think there should be a 'setClientRect'. And this >isn't the first time that someone's asked about doing something like this... > >-- Brian Except you'll have to change it back to my last version since the 3rd and 4th elements returned by getSize is not the same as the extent... -- Brian