On 08/08/15 20:43, Jigyasa Grover wrote:
Oh
Thank You Ben.
It was indeed a very nice explanation. :)
I was able to resolve my issue perfectly.
But changing the code snippet to:
*---------------------------------------------------------------------------
#initialize
. . .
boxWindow := box openInWindow.
boxWindow setLabel: 'searchQuick - Browse Files'.
box position: 150@0.
boxWindow fullscreen.
boxWindow color: Color black.
---------------------------------------------------------------------------*
I can no longer position 'box' within 'boxWindow'.
Any clue regarding this ?
If you take a look at
Morph>>openInWindowLabeled: aString inWorld: aWorld
you'll see that the morph itself is added with a LayoutFrame taking up
the whole window (0@0 extent: 1@1). Making that then fullScreen results
in the box getting resized to take the whole screen.
If you give the box a different frame after adding it you should be able
to position it differently.
Stephan