Re: Win32lib System Metrics

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu