Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opinion: Who Should Move a Control
Message
From
16/07/1999 17:39:17
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
16/07/1999 16:47:11
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00242574
Message ID:
00242609
Views:
23
>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

It has to be #1. The individual controls would need to be aware of what other control exist before they could reposition themselves.

This would be bad, and at the same time, not very good!
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform