Re: Sizing large views?

Cuno Pfister (pfister@oberon.ch)
Sat, 9 Jan 1999 15:17:02 +0100

>I can't figure out under what conditions BB grants my resize request and
>when it denies it. Can somebody please point me to the appropriate place in
>the documentation or explain the behavior of SetSize?

This is not a question of BlackBox per se. It's just the fact that a view is
embedded in a container, and the container must have control over the sizes
of its embedded views. A text with 10 cm width cannot embed a view with 100
cm
width, even if the view demands this. Thus views can only propose size
changes;
it's up to their containers to perform the changes - or to ignore the
proposal.
In general, containers are expected to grant the view's requests, as long as
this
is possible.

>The other problem is related to the sheer size of the view. AFAIK, BB
>expects the full size of a view (universal coordinates) to be passed in a
>call to SetSize. With the default font (Mac, Geneva 10pt), the height of my

The view doesn't need to be that large. This size is the model's size, not
so much the view's. The view is only, well, a view on this model:-)
For scrolling purposes, BlackBox allows you to choose any logical
coordinates
that are suitable for your purposes, in the scrolling protocols. For
example,
the text views use the character positions in the text.

Cuno Pfister

Oberon microsystems, Inc.