General information
Title:
Opinion: Who Should Move a Control
Which is the most commonly accepted method:
I want a form/container that will resize and I want the controls within the form to respond to the resize event. My question is - what object should perform the move on the controls.
The form has just been resized:
1. Should the form inspect each of the objects and change their coordinates according to it's requirement.
2. Should the form notify each of the objects that is has been resized and let the object inspect the form's requirements and change their own coordinates.
In my opinion #1 is most effective method, but then I fairly new to OOP and this is why I am asking...
...tim
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only