When doing layouts on a Form...why do controls know thier location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

By that I mean, should the layout of the Form's container tell the child
controls where to go. Not the other way around, where the child control says
its wants some position?

Why was the API setup that way?

Thanks
 
probably as a concession to data storage.

Rather than having storage in the container for each control and having to
manage changes to that storage when a control is added or remove, the
storage for the location is allocated in the control itself and gets managed
when you remove the control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top