Re: Win32lib System Metrics
- Posted by Brian Broker <bkb at CNW.COM> Aug 17, 2000
- 429 views
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