View composer problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

View composer problem

Costas Menico-2
I create a view. When i show it I don't get the same size as it was
designed in the composer.  What am I doing wrong?

E.g.   I create a Shell view with a resource string. I then display it
as follows:

x := Shell create: 'Control panel'
x show.

Its shows a large size window that does not match my design. What am I
doing wrong?

Thanks

Costas


Reply | Threaded
Open this post in threaded view
|

Re: View composer problem

Bill Schwab
Costas,

> I create a view. When i show it I don't get the same size as it was
> designed in the composer.  What am I doing wrong?

Not necessarily the correct or best answer, but, what I do in cases where I
care about the size of the shell is to set the #preferredExtent (a Point)
and set #usePreferredExtent to true.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]