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.

I have re-thought your question.

I don't really know what you are tring to do.

But it appears to me that you are trying to open a main Window with an
undetermined amount of children inside. If that's the case what I do is design
a main Window with three children that fit nicely. Put the info into the first
three children. Then with the message box ask More? YESSNO.

If yes then erase the first three chilren and add three more.
If the child you are looking for is on the screen then click no and the message
box goes away. I think this would be easier than trying to calculate the size of
an undetermined amout of children.

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