Re: Restrining a child window's positioning within parent window

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

Rad wrote:
> 
> Hi,
> 
> I have a Parent window containing many child windows.
> 
> I want to restrain any child window from being moved out of parent window's
> client area (using win32lib).
> 
> How can I do this?
> 
> Regards,
> Rad.

Hello Rad,

I don't know exactly how to do this, but you would have to know,

The size of you main window.
The size and location of all the children.
I would try getChildren() along  with getSystemMetrics() to monitor things.
Then setRect() to make sure do not exceed you limits.

Don Cole
 Bonds > Ruth.
 Giants STILL in last place 
 Hmmmmmmmm!

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

Search



Quick Links

User menu

Not signed in.

Misc Menu