(unknown charset) - Tables filling forms etc.

From: (unknown charset) unknown charset <no email>
Date: Wed, 24 May 2006 13:44:30 +0400

----boundary-LibPST-iamunique-2133968316_-_-
Content-type: text/plain

Chris Burrows wrote:
> The example I gave the other day is
> typical: I have a table on a form, when I resize the form, I want the table
> to continue to fill the form so that I can see as much of it as possible,
> rather than remaining as a fixed size in the top left hand corner of the
> window. In Delphi, VB, C# etc. this is achieved with just *one* assignment
> statement. How can you do this in BB?

Chris,

you have brought this 'alignment' issue up again, so this time I want to
answer.

As far as I understand BCF ideology, OMS are trying to keep things small
and simple. To achieve that, they recommend composition of components
instead of extension.

In application to your sore table alignment, I would think the following
would be the proper approach to keep the BCF spirit: create a wrapper
view that would be aware of all and any alignment options you can think
of, teach that view to interoperate with its container. This way you get
a solution that has the following advantages:

* your Table view is kept simple, it is kept table-oriented, its
interface and implementation are not filled with visualization stuff
that is not relevant to the Table itself;

* your wrapper view is also kept very simple and small;

* you have performed excellent decomposition of your task;

* you have now got a UNIVERSAL wrapper view that can be used with ANY
view, not only your Table, and potentially even other wrapper views that
provide other visual effects;

* you have used composition instead of type extension ('inheritance'),
thus keeping OMS happy :-) and contributing to the clarity and
uniformity of the environment by keeping its core principles.

I think the recommendation to replace extension with composition is so
very fundamental to keeping simplicity and clarity!

I am a former CS, I only do a little programming now, only in BlackBox,
and only for pleasure - to keep my brain sharp and to get aesthetical
pleasure. I think it is a pleasure to program in BlackBox. All these
discussions sound very religious, even use some of the terminology
(Wojtek Skulski). That is very interesting to me, because I have gone
from CS to church ministry :-)

Anton

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-2133968316_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlc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dCBpcyBhIHBsZWFz
dXJlIHRvIHByb2dyYW0gaW4gQmxhY2tCb3guIEFsbCB0aGVzZSBccGFyDQpkaXNjdXNzaW9ucyBz
b3VuZCB2ZXJ5IHJlbGlnaW91cywgZXZlbiB1c2Ugc29tZSBvZiB0aGUgdGVybWlub2xvZ3kgXHBh
cg0KKFdvanRlayBTa3Vsc2tpKS4gVGhhdCBpcyB2ZXJ5IGludGVyZXN0aW5nIHRvIG1lLCBiZWNh
dXNlIEkgaGF2ZSBnb25lIFxwYXINCmZyb20gQ1MgdG8gY2h1cmNoIG1pbmlzdHJ5IDotKVxwYXIN
ClxwYXINCkFudG9uXHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVj
dCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaFxwYXINClxwYXINCn0=


----boundary-LibPST-iamunique-2133968316_-_---
Received on Wed May 24 2006 - 11:44:30 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:58 UTC