controlling the size of a morph embedded in a morphtreemorph

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

controlling the size of a morph embedded in a morphtreemorph

Tudor Girba
Hi (Alain :)),

I am trying to embed morphs into a MorphTreeMorph, but I cannot seem to be able to control the size.

Please take a look at the screenshot in the attachment. On the right hand side I have a tree morph that lists all methods, and when I expand a selector, I see the source code. Now, I would like to have the followings:
- the text morph fill the entire horizontal space
- the text morph expand on the vertical, too
- the label fill the entire horizontal space

I tried to:
- set the MorphTreeMorph to have lastColumnUnbounded, and
- the morph layout to (fullFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 1)))

but it did not work.

Does anyone have an idea?


If you want to take a look at the example, you need Glamour:
Gofer new
        squeaksource: 'Glamour';
        package: 'ConfigurationOfGlamour';
        load.
(Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.

and then:
GLMOtherExamples new expander openOn: Collection withAllSubclasses.


Cheers,
Doru





--
www.tudorgirba.com

"What we can governs what we wish."




Screen shot 2011-01-06 at 01.16.35.png (67K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: controlling the size of a morph embedded in a morphtreemorph

Alain Plantec-4
Hi Doru,
I know it's a problem with morphtreemorph.
I will have a look.
Chers
Alain

> Hi (Alain :)),
>
> I am trying to embed morphs into a MorphTreeMorph, but I cannot seem to be able to control the size.
>
> Please take a look at the screenshot in the attachment. On the right hand side I have a tree morph that lists all methods, and when I expand a selector, I see the source code. Now, I would like to have the followings:
> - the text morph fill the entire horizontal space
> - the text morph expand on the vertical, too
> - the label fill the entire horizontal space
>
> I tried to:
> - set the MorphTreeMorph to have lastColumnUnbounded, and
> - the morph layout to (fullFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 1)))
>
> but it did not work.
>
> Does anyone have an idea?
>
>
> If you want to take a look at the example, you need Glamour:
> Gofer new
> squeaksource: 'Glamour';
> package: 'ConfigurationOfGlamour';
> load.
> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>
> and then:
> GLMOtherExamples new expander openOn: Collection withAllSubclasses.
>
>
> Cheers,
> Doru
>
>
>
>
>
>
> --
> www.tudorgirba.com
>
> "What we can governs what we wish."
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: controlling the size of a morph embedded in a morphtreemorph

Tudor Girba
Thanks, Alain. I would really appreciate your help.

Cheers,
Doru


On 6 Jan 2011, at 08:14, Alain Plantec wrote:

> Hi Doru,
> I know it's a problem with morphtreemorph.
> I will have a look.
> Chers
> Alain
>> Hi (Alain :)),
>>
>> I am trying to embed morphs into a MorphTreeMorph, but I cannot seem to be able to control the size.
>>
>> Please take a look at the screenshot in the attachment. On the right hand side I have a tree morph that lists all methods, and when I expand a selector, I see the source code. Now, I would like to have the followings:
>> - the text morph fill the entire horizontal space
>> - the text morph expand on the vertical, too
>> - the label fill the entire horizontal space
>>
>> I tried to:
>> - set the MorphTreeMorph to have lastColumnUnbounded, and
>> - the morph layout to (fullFrame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 1)))
>>
>> but it did not work.
>>
>> Does anyone have an idea?
>>
>>
>> If you want to take a look at the example, you need Glamour:
>> Gofer new
>> squeaksource: 'Glamour';
>> package: 'ConfigurationOfGlamour';
>> load.
>> (Smalltalk at: #ConfigurationOfGlamour) perform: #loadDefault.
>>
>> and then:
>> GLMOtherExamples new expander openOn: Collection withAllSubclasses.
>>
>>
>> Cheers,
>> Doru
>>
>>
>>
>>
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "What we can governs what we wish."
>>
>>
>>
>
>

--
www.tudorgirba.com

"Don't give to get. Just give."