splitters in table layout

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

splitters in table layout

Tudor Girba
Hi,

I would like to have splitters used inside a table layout, but I cannot seem to manage. In particular, I would like to have these splitters work with the GeneralScrollPane. I tried something like below, but it seems that the splitters expect a frame layout.

What can I do about it?


| m scroll |
m := PanelMorph new.
m
        hResizing: #shrinkWrap;
        vResizing: #spaceFill;
        changeTableLayout;
        listDirection: #leftToRight.
m addMorphBack: (PanelMorph new
                minWidth: 100;
                hResizing: #shrinkWrap;
                vResizing: #spaceFill).
m addMorphBack: (PanelMorph new
                minWidth: 100;
                hResizing: #shrinkWrap;
                vResizing: #spaceFill).
m addPaneSplitters.

scroll := GeneralScrollPane new
        changeScrollerTableLayout;
        scrollTarget: m.
scroll openInWindow.



Cheers,
Doru




--
www.tudorgirba.com

"Speaking louder won't make the point worthier."


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Gary Chambers-4
Splitters only work with proportional layouts due to the way they work.
Also, since shrink wrap uses the min width/height and splitters have to work
by effectively
changing the position or extent of adjacent morphs (not min), things are
more limited.

Can you describe the effect you wish to achieve?

Regards, Gary

----- Original Message -----
From: "Tudor Girba" <[hidden email]>
To: "[hidden email] Development"
<[hidden email]>
Sent: Sunday, January 16, 2011 12:16 PM
Subject: [Pharo-project] splitters in table layout


Hi,

I would like to have splitters used inside a table layout, but I cannot seem
to manage. In particular, I would like to have these splitters work with the
GeneralScrollPane. I tried something like below, but it seems that the
splitters expect a frame layout.

What can I do about it?


| m scroll |
m := PanelMorph new.
m
hResizing: #shrinkWrap;
vResizing: #spaceFill;
changeTableLayout;
listDirection: #leftToRight.
m addMorphBack: (PanelMorph new
minWidth: 100;
hResizing: #shrinkWrap;
vResizing: #spaceFill).
m addMorphBack: (PanelMorph new
minWidth: 100;
hResizing: #shrinkWrap;
vResizing: #spaceFill).
m addPaneSplitters.

scroll := GeneralScrollPane new
changeScrollerTableLayout;
scrollTarget: m.
scroll openInWindow.



Cheers,
Doru




--
www.tudorgirba.com

"Speaking louder won't make the point worthier."



Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
Hi Gary,

I wish to achieve the effect from the panes inside the OSX Finder. Suppose that I have two panes vertically stretched and horizontally stacked in a GeneralScrollbar with a splitter in between. When I drag the splitter, the first panel should extend and push the second one.

So, basically, if we have shrinkWrap, I would like the splitter to resize the morph.

Cheers,
Doru



On 17 Jan 2011, at 12:18, Gary Chambers wrote:

> Splitters only work with proportional layouts due to the way they work.
> Also, since shrink wrap uses the min width/height and splitters have to work by effectively
> changing the position or extent of adjacent morphs (not min), things are more limited.
>
> Can you describe the effect you wish to achieve?
>
> Regards, Gary
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: "[hidden email] Development" <[hidden email]>
> Sent: Sunday, January 16, 2011 12:16 PM
> Subject: [Pharo-project] splitters in table layout
>
>
> Hi,
>
> I would like to have splitters used inside a table layout, but I cannot seem to manage. In particular, I would like to have these splitters work with the GeneralScrollPane. I tried something like below, but it seems that the splitters expect a frame layout.
>
> What can I do about it?
>
>
> | m scroll |
> m := PanelMorph new.
> m
> hResizing: #shrinkWrap;
> vResizing: #spaceFill;
> changeTableLayout;
> listDirection: #leftToRight.
> m addMorphBack: (PanelMorph new
> minWidth: 100;
> hResizing: #shrinkWrap;
> vResizing: #spaceFill).
> m addMorphBack: (PanelMorph new
> minWidth: 100;
> hResizing: #shrinkWrap;
> vResizing: #spaceFill).
> m addPaneSplitters.
>
> scroll := GeneralScrollPane new
> changeScrollerTableLayout;
> scrollTarget: m.
> scroll openInWindow.
>
>
>
> Cheers,
> Doru
>
>
>
>
> --
> www.tudorgirba.com
>
> "Speaking louder won't make the point worthier."
>
>
>

--
www.tudorgirba.com

"What we can governs what we wish."




Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Gary Chambers-4
Hi Doru, this appears to be what you want....


 | m leftMorph scroll |
 m := PanelMorph new.
 m
     hResizing: #shrinkWrap;
     vResizing: #spaceFill;
     changeTableLayout;
     listDirection: #leftToRight.
 m addMorphBack: (leftMorph := Morph new
     color: Color red;
     minimumExtent: 150@10;
     extent: 150@10;
     hResizing: #rigid; "shown for clarity, is the default"
     vResizing: #spaceFill).
 m addMorphBack: (EdgeGripMorph new
     width: ProportionalSplitterMorph splitterWidth;
     hResizing: #rigid; "not the default this time, vResizing is also
#spaceFill by default"
     target: leftMorph).
 m addMorphBack: (Morph new
     color: Color green;
     minWidth: 100;
      hResizing: #shrinkWrap;
      vResizing: #spaceFill).

 scroll := GeneralScrollPane new
 changeScrollerTableLayout;
 scrollTarget: m.
 scroll openInWindow.


Sorry that the edge grip works with minimumExtent (as opposed to minWidth
and minHeight).
Should clean things up sometime, isn't Morphic fun!

Regards, Gary

----- Original Message -----
From: "Tudor Girba" <[hidden email]>
To: <[hidden email]>
Sent: Monday, January 17, 2011 10:34 PM
Subject: Re: [Pharo-project] splitters in table layout


Hi Gary,

I wish to achieve the effect from the panes inside the OSX Finder. Suppose
that I have two panes vertically stretched and horizontally stacked in a
GeneralScrollbar with a splitter in between. When I drag the splitter, the
first panel should extend and push the second one.

So, basically, if we have shrinkWrap, I would like the splitter to resize
the morph.

Cheers,
Doru



On 17 Jan 2011, at 12:18, Gary Chambers wrote:

> Splitters only work with proportional layouts due to the way they work.
> Also, since shrink wrap uses the min width/height and splitters have to
> work by effectively
> changing the position or extent of adjacent morphs (not min), things are
> more limited.
>
> Can you describe the effect you wish to achieve?
>
> Regards, Gary
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: "[hidden email] Development"
> <[hidden email]>
> Sent: Sunday, January 16, 2011 12:16 PM
> Subject: [Pharo-project] splitters in table layout
>
>
> Hi,
>
> I would like to have splitters used inside a table layout, but I cannot
> seem to manage. In particular, I would like to have these splitters work
> with the GeneralScrollPane. I tried something like below, but it seems
> that the splitters expect a frame layout.
>
> What can I do about it?
>
>
> | m scroll |
> m := PanelMorph new.
> m
> hResizing: #shrinkWrap;
> vResizing: #spaceFill;
> changeTableLayout;
> listDirection: #leftToRight.
> m addMorphBack: (PanelMorph new
> minWidth: 100;
> hResizing: #shrinkWrap;
> vResizing: #spaceFill).
> m addMorphBack: (PanelMorph new
> minWidth: 100;
> hResizing: #shrinkWrap;
> vResizing: #spaceFill).
> m addPaneSplitters.
>
> scroll := GeneralScrollPane new
> changeScrollerTableLayout;
> scrollTarget: m.
> scroll openInWindow.
>
>
>
> Cheers,
> Doru
>
>
>
>
> --
> www.tudorgirba.com
>
> "Speaking louder won't make the point worthier."
>
>
>

--
www.tudorgirba.com

"What we can governs what we wish."





Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
Thanks, Gary!

That is exactly what I need.

Cheers,
Doru


On 18 Jan 2011, at 12:27, Gary Chambers wrote:

> Hi Doru, this appears to be what you want....
>
>
> | m leftMorph scroll |
> m := PanelMorph new.
> m
>    hResizing: #shrinkWrap;
>    vResizing: #spaceFill;
>    changeTableLayout;
>    listDirection: #leftToRight.
> m addMorphBack: (leftMorph := Morph new
>    color: Color red;
>    minimumExtent: 150@10;
>    extent: 150@10;
>    hResizing: #rigid; "shown for clarity, is the default"
>    vResizing: #spaceFill).
> m addMorphBack: (EdgeGripMorph new
>    width: ProportionalSplitterMorph splitterWidth;
>    hResizing: #rigid; "not the default this time, vResizing is also #spaceFill by default"
>    target: leftMorph).
> m addMorphBack: (Morph new
>    color: Color green;
>    minWidth: 100;
>     hResizing: #shrinkWrap;
>     vResizing: #spaceFill).
>
> scroll := GeneralScrollPane new
> changeScrollerTableLayout;
> scrollTarget: m.
> scroll openInWindow.
>
>
> Sorry that the edge grip works with minimumExtent (as opposed to minWidth and minHeight).
> Should clean things up sometime, isn't Morphic fun!
>
> Regards, Gary
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: <[hidden email]>
> Sent: Monday, January 17, 2011 10:34 PM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
> Hi Gary,
>
> I wish to achieve the effect from the panes inside the OSX Finder. Suppose that I have two panes vertically stretched and horizontally stacked in a GeneralScrollbar with a splitter in between. When I drag the splitter, the first panel should extend and push the second one.
>
> So, basically, if we have shrinkWrap, I would like the splitter to resize the morph.
>
> Cheers,
> Doru
>
>
>
> On 17 Jan 2011, at 12:18, Gary Chambers wrote:
>
>> Splitters only work with proportional layouts due to the way they work.
>> Also, since shrink wrap uses the min width/height and splitters have to work by effectively
>> changing the position or extent of adjacent morphs (not min), things are more limited.
>>
>> Can you describe the effect you wish to achieve?
>>
>> Regards, Gary
>>
>> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
>> To: "[hidden email] Development" <[hidden email]>
>> Sent: Sunday, January 16, 2011 12:16 PM
>> Subject: [Pharo-project] splitters in table layout
>>
>>
>> Hi,
>>
>> I would like to have splitters used inside a table layout, but I cannot seem to manage. In particular, I would like to have these splitters work with the GeneralScrollPane. I tried something like below, but it seems that the splitters expect a frame layout.
>>
>> What can I do about it?
>>
>>
>> | m scroll |
>> m := PanelMorph new.
>> m
>> hResizing: #shrinkWrap;
>> vResizing: #spaceFill;
>> changeTableLayout;
>> listDirection: #leftToRight.
>> m addMorphBack: (PanelMorph new
>> minWidth: 100;
>> hResizing: #shrinkWrap;
>> vResizing: #spaceFill).
>> m addMorphBack: (PanelMorph new
>> minWidth: 100;
>> hResizing: #shrinkWrap;
>> vResizing: #spaceFill).
>> m addPaneSplitters.
>>
>> scroll := GeneralScrollPane new
>> changeScrollerTableLayout;
>> scrollTarget: m.
>> scroll openInWindow.
>>
>>
>>
>> Cheers,
>> Doru
>>
>>
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "Speaking louder won't make the point worthier."
>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "What we can governs what we wish."
>
>
>
>
>

--
www.tudorgirba.com

"Every thing should have the right to be different."




Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Andreas Wacknitz
In reply to this post by Gary Chambers-4
Hi,

Am 18.01.11 12:27, schrieb Gary Chambers:

> | m leftMorph scroll |
> m := PanelMorph new.
> m
>     hResizing: #shrinkWrap;
>     vResizing: #spaceFill;
>     changeTableLayout;
>     listDirection: #leftToRight.
> m addMorphBack: (leftMorph := Morph new
>     color: Color red;
>     minimumExtent: 150@10;
>     extent: 150@10;
>     hResizing: #rigid; "shown for clarity, is the default"
>     vResizing: #spaceFill).
> m addMorphBack: (EdgeGripMorph new
>     width: ProportionalSplitterMorph splitterWidth;
>     hResizing: #rigid; "not the default this time, vResizing is also
> #spaceFill by default"
>     target: leftMorph).
> m addMorphBack: (Morph new
>     color: Color green;
>     minWidth: 100;
>      hResizing: #shrinkWrap;
>      vResizing: #spaceFill).
>
> scroll := GeneralScrollPane new
> changeScrollerTableLayout;
In my Pharo-1.1 and 1.2 images
GeneralScrollPane>>changeScrollerTableLayout is not available.
Did I miss something?

Regards,
Andreas


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).

Cheers,
Doru


On 18 Jan 2011, at 20:50, Andreas Wacknitz wrote:

> Hi,
>
> Am 18.01.11 12:27, schrieb Gary Chambers:
>> | m leftMorph scroll |
>> m := PanelMorph new.
>> m
>>    hResizing: #shrinkWrap;
>>    vResizing: #spaceFill;
>>    changeTableLayout;
>>    listDirection: #leftToRight.
>> m addMorphBack: (leftMorph := Morph new
>>    color: Color red;
>>    minimumExtent: 150@10;
>>    extent: 150@10;
>>    hResizing: #rigid; "shown for clarity, is the default"
>>    vResizing: #spaceFill).
>> m addMorphBack: (EdgeGripMorph new
>>    width: ProportionalSplitterMorph splitterWidth;
>>    hResizing: #rigid; "not the default this time, vResizing is also
>> #spaceFill by default"
>>    target: leftMorph).
>> m addMorphBack: (Morph new
>>    color: Color green;
>>    minWidth: 100;
>>     hResizing: #shrinkWrap;
>>     vResizing: #spaceFill).
>>
>> scroll := GeneralScrollPane new
>> changeScrollerTableLayout;
> In my Pharo-1.1 and 1.2 images
> GeneralScrollPane>>changeScrollerTableLayout is not available.
> Did I miss something?
>
> Regards,
> Andreas
>
>

--
www.tudorgirba.com

"Every thing should have the right to be different."




Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Andreas Wacknitz

Am 18.01.2011 um 20:58 schrieb Tudor Girba:

> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>
> Cheers,
> Doru
>
Ah, thank you. I have found two messages with changesets from January 11th, 2011.
After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...

Regards,
Andreas


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
That is strange. Are you using Pharo 1.2?

Cheers,
Doru


On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:

>
> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>
>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>
>> Cheers,
>> Doru
>>
> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>
> Regards,
> Andreas
>
>

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."




Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Andreas Wacknitz
Am 19.01.11 09:54, schrieb Tudor Girba:
> That is strange. Are you using Pharo 1.2?
Yes (pharo-dev at 12303).

Andreas

>
> Cheers,
> Doru
>
>
> On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:
>
>>
>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>
>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>
>>> Cheers,
>>> Doru
>>>
>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>
>> Regards,
>> Andreas
>>
>>
>
> --
> www.tudorgirba.com
>
> "To lead is not to demand things, it is to make them happen."
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
Strange. I just did the followings and it worked just fine:

1. downloaded 12303:
https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/67/artifact/Pharo-1.2/*zip*/Pharo-1.2.zip

2. filed in the attached CS

3. executed


| m leftMorph scroll |
m := PanelMorph new.
m
  hResizing: #shrinkWrap;
  vResizing: #spaceFill;
  changeTableLayout;
  listDirection: #leftToRight.
m addMorphBack: (leftMorph := Morph new
  color: Color red;
  minimumExtent: 150@10;
  extent: 150@10;
  hResizing: #rigid; "shown for clarity, is the default"
  vResizing: #spaceFill).
m addMorphBack: (EdgeGripMorph new
  width: ProportionalSplitterMorph splitterWidth;
  hResizing: #rigid; "not the default this time, vResizing is also #spaceFill by default"
  target: leftMorph).
m addMorphBack: (Morph new
  color: Color green;
  minWidth: 100;
   hResizing: #shrinkWrap;
   vResizing: #spaceFill).

scroll := GeneralScrollPane new
changeScrollerTableLayout;
scrollTarget: m.
scroll openInWindow.


Cheers,
Doru




On 19 Jan 2011, at 20:10, Andreas Wacknitz wrote:

> Am 19.01.11 09:54, schrieb Tudor Girba:
>> That is strange. Are you using Pharo 1.2?
> Yes (pharo-dev at 12303).
>
> Andreas
>
>>
>> Cheers,
>> Doru
>>
>>
>> On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:
>>
>>>
>>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>>
>>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>>
>>> Regards,
>>> Andreas
>>>
>>>
>>
>> --
>> www.tudorgirba.com
>>
>> "To lead is not to demand things, it is to make them happen."
>>
>>
>>
>>
>>
>
>
--
www.tudorgirba.com

"In a world where everything is moving ever faster,
one might have better chances to win by moving slower."




GeneralScrollPaneLayout.2.cs (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
In reply to this post by Andreas Wacknitz
Strange. I just did the followings and it worked just fine:

1. downloaded 12303:
https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/67/artifact/Pharo-1.2/*zip*/Pharo-1.2.zip

2. filed in the attached CS

3. executed


| m leftMorph scroll |
m := PanelMorph new.
m
 hResizing: #shrinkWrap;
 vResizing: #spaceFill;
 changeTableLayout;
 listDirection: #leftToRight.
m addMorphBack: (leftMorph := Morph new
 color: Color red;
 minimumExtent: 150@10;
 extent: 150@10;
 hResizing: #rigid; "shown for clarity, is the default"
 vResizing: #spaceFill).
m addMorphBack: (EdgeGripMorph new
 width: ProportionalSplitterMorph splitterWidth;
 hResizing: #rigid; "not the default this time, vResizing is also #spaceFill by default"
 target: leftMorph).
m addMorphBack: (Morph new
 color: Color green;
 minWidth: 100;
  hResizing: #shrinkWrap;
  vResizing: #spaceFill).

scroll := GeneralScrollPane new
changeScrollerTableLayout;
scrollTarget: m.
scroll openInWindow.


Cheers,
Doru




On 19 Jan 2011, at 20:10, Andreas Wacknitz wrote:

> Am 19.01.11 09:54, schrieb Tudor Girba:
>> That is strange. Are you using Pharo 1.2?
> Yes (pharo-dev at 12303).
>
> Andreas
>
>>
>> Cheers,
>> Doru
>>
>>
>> On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:
>>
>>>
>>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>>
>>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>>
>>> Regards,
>>> Andreas
>>>
>>>
>>
>> --
>> www.tudorgirba.com
>>
>> "To lead is not to demand things, it is to make them happen."
>>
>>
>>
>>
>>
>
>
--
www.tudorgirba.com

"In a world where everything is moving ever faster,
one might have better chances to win by moving slower."




GeneralScrollPaneLayout.2.cs (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Andreas Wacknitz

Am 19.01.2011 um 21:01 schrieb Tudor Girba:

> Strange. I just did the followings and it worked just fine:
>
> 1. downloaded 12303:
> https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/67/artifact/Pharo-1.2/*zip*/Pharo-1.2.zip
>
> 2. filed in the attached CS
>
> 3. executed
>
>
> | m leftMorph scroll |
> m := PanelMorph new.
> m
> hResizing: #shrinkWrap;
> vResizing: #spaceFill;
> changeTableLayout;
> listDirection: #leftToRight.
> m addMorphBack: (leftMorph := Morph new
> color: Color red;
> minimumExtent: 150@10;
> extent: 150@10;
> hResizing: #rigid; "shown for clarity, is the default"
> vResizing: #spaceFill).
> m addMorphBack: (EdgeGripMorph new
> width: ProportionalSplitterMorph splitterWidth;
> hResizing: #rigid; "not the default this time, vResizing is also #spaceFill by default"
> target: leftMorph).
> m addMorphBack: (Morph new
> color: Color green;
> minWidth: 100;
>  hResizing: #shrinkWrap;
>  vResizing: #spaceFill).
>
> scroll := GeneralScrollPane new
> changeScrollerTableLayout;
> scrollTarget: m.
> scroll openInWindow.
>
>
> Cheers,
> Doru
>
> <GeneralScrollPaneLayout.2.cs>
>

Hi Doru,

I repeated your steps from above. When I execute the code in a Workspace a little dialog will open.
It has a horizontal scroll bar that I can use. As soon as I move the splitter I will get the aforementioned DNU.
I am on Mac OS 10.6.6.

Regards,
Andreas



> On 19 Jan 2011, at 20:10, Andreas Wacknitz wrote:
>
>> Am 19.01.11 09:54, schrieb Tudor Girba:
>>> That is strange. Are you using Pharo 1.2?
>> Yes (pharo-dev at 12303).
>>
>> Andreas
>>
>>>
>>> Cheers,
>>> Doru
>>>
>>>
>>> On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:
>>>
>>>>
>>>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>>>
>>>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>>>
>>>>> Cheers,
>>>>> Doru
>>>>>
>>>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>>>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>>>
>>>> Regards,
>>>> Andreas
>>>>
>>>>
>>>
>>> --
>>> www.tudorgirba.com
>>>
>>> "To lead is not to demand things, it is to make them happen."
>>>
>>>
>>>
>>>
>>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "In a world where everything is moving ever faster,
> one might have better chances to win by moving slower."
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
Indeed, you are right!

This happens in the Pharo 1.2 12303 (attached the PharoDebug.log), but not in 12292. Does anyone know what changed in between?

Cheers,
Doru




On 19 Jan 2011, at 21:52, Andreas Wacknitz wrote:

>
> Am 19.01.2011 um 21:01 schrieb Tudor Girba:
>
>> Strange. I just did the followings and it worked just fine:
>>
>> 1. downloaded 12303:
>> https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.2/67/artifact/Pharo-1.2/*zip*/Pharo-1.2.zip
>>
>> 2. filed in the attached CS
>>
>> 3. executed
>>
>>
>> | m leftMorph scroll |
>> m := PanelMorph new.
>> m
>> hResizing: #shrinkWrap;
>> vResizing: #spaceFill;
>> changeTableLayout;
>> listDirection: #leftToRight.
>> m addMorphBack: (leftMorph := Morph new
>> color: Color red;
>> minimumExtent: 150@10;
>> extent: 150@10;
>> hResizing: #rigid; "shown for clarity, is the default"
>> vResizing: #spaceFill).
>> m addMorphBack: (EdgeGripMorph new
>> width: ProportionalSplitterMorph splitterWidth;
>> hResizing: #rigid; "not the default this time, vResizing is also #spaceFill by default"
>> target: leftMorph).
>> m addMorphBack: (Morph new
>> color: Color green;
>> minWidth: 100;
>> hResizing: #shrinkWrap;
>> vResizing: #spaceFill).
>>
>> scroll := GeneralScrollPane new
>> changeScrollerTableLayout;
>> scrollTarget: m.
>> scroll openInWindow.
>>
>>
>> Cheers,
>> Doru
>>
>> <GeneralScrollPaneLayout.2.cs>
>>
>
> Hi Doru,
>
> I repeated your steps from above. When I execute the code in a Workspace a little dialog will open.
> It has a horizontal scroll bar that I can use. As soon as I move the splitter I will get the aforementioned DNU.
> I am on Mac OS 10.6.6.
>
> Regards,
> Andreas
>
>
>
>> On 19 Jan 2011, at 20:10, Andreas Wacknitz wrote:
>>
>>> Am 19.01.11 09:54, schrieb Tudor Girba:
>>>> That is strange. Are you using Pharo 1.2?
>>> Yes (pharo-dev at 12303).
>>>
>>> Andreas
>>>
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>>>
>>>> On 18 Jan 2011, at 21:33, Andreas Wacknitz wrote:
>>>>
>>>>>
>>>>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>>>>
>>>>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>>>>
>>>>>> Cheers,
>>>>>> Doru
>>>>>>
>>>>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>>>>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>>>>
>>>>> Regards,
>>>>> Andreas
>>>>>
>>>>>
>>>>
>>>> --
>>>> www.tudorgirba.com
>>>>
>>>> "To lead is not to demand things, it is to make them happen."
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> www.tudorgirba.com
>>
>> "In a world where everything is moving ever faster,
>> one might have better chances to win by moving slower."
>>
>>
>>
>
>
--
www.tudorgirba.com

"Obvious things are difficult to teach."




PharoDebug.log (175K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Gary Chambers-4
In reply to this post by Andreas Wacknitz
Missed the case where fast dragging setting is enabled....

Regards, Gary

----- Original Message -----
From: "Andreas Wacknitz" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, January 18, 2011 8:33 PM
Subject: Re: [Pharo-project] splitters in table layout



Am 18.01.2011 um 20:58 schrieb Tudor Girba:

> Yes, you missed a changeset Gary sent in the aligning morphs thread (he
> actually sent two, and you should pick the second one).
>
> Cheers,
> Doru
>
Ah, thank you. I have found two messages with changesets from January 11th,
2011.
After I filein the second changeset alas I will get a DNU
Morph>>doFastWindowReframe: when I move the splitter...

Regards,
Andreas



Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
What does this imply?

Cheers,
Doru


On 20 Jan 2011, at 12:09, Gary Chambers wrote:

> Missed the case where fast dragging setting is enabled....
>
> Regards, Gary
>
> ----- Original Message ----- From: "Andreas Wacknitz" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, January 18, 2011 8:33 PM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
>
> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>
>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>
>> Cheers,
>> Doru
>>
> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>
> Regards,
> Andreas
>
>
>

--
www.tudorgirba.com

"Reasonable is what we are accustomed with."


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Gary Chambers-4
The attached changeset will "fix" this, though perhaps not ideal...

Perhaps it is time to refactor all the Resizer stuff!

Regards, Gary


----- Original Message -----
From: "Tudor Girba" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, January 20, 2011 11:17 AM
Subject: Re: [Pharo-project] splitters in table layout


What does this imply?

Cheers,
Doru


On 20 Jan 2011, at 12:09, Gary Chambers wrote:

> Missed the case where fast dragging setting is enabled....
>
> Regards, Gary
>
> ----- Original Message ----- From: "Andreas Wacknitz" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, January 18, 2011 8:33 PM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
>
> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>
>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he
>> actually sent two, and you should pick the second one).
>>
>> Cheers,
>> Doru
>>
> Ah, thank you. I have found two messages with changesets from January
> 11th, 2011.
> After I filein the second changeset alas I will get a DNU
> Morph>>doFastWindowReframe: when I move the splitter...
>
> Regards,
> Andreas
>
>
>
--
www.tudorgirba.com

"Reasonable is what we are accustomed with."


EdgeGripFastReframeFix.1.cs (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Stéphane Ducasse

On Jan 20, 2011, at 12:43 PM, Gary Chambers wrote:

> The attached changeset will "fix" this, though perhaps not ideal...
>
> Perhaps it is time to refactor all the Resizer stuff!

yes please for 1.3.

Stef

>
> Regards, Gary
>
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, January 20, 2011 11:17 AM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
> What does this imply?
>
> Cheers,
> Doru
>
>
> On 20 Jan 2011, at 12:09, Gary Chambers wrote:
>
>> Missed the case where fast dragging setting is enabled....
>>
>> Regards, Gary
>>
>> ----- Original Message ----- From: "Andreas Wacknitz" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, January 18, 2011 8:33 PM
>> Subject: Re: [Pharo-project] splitters in table layout
>>
>>
>>
>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>
>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>
>>> Cheers,
>>> Doru
>>>
>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>
>> Regards,
>> Andreas
>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "Reasonable is what we are accustomed with."
>
> <EdgeGripFastReframeFix.1.cs>


Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Tudor Girba
In reply to this post by Gary Chambers-4
Hi Gary,

Indeed, this stops the debugger popping out. However, resizing is not live (only when I mouseUp: does the scroll pane refresh). Is there a quick way to solve this issue, or should we just go with this fix for the moment?

Cheers,
Doru



On 20 Jan 2011, at 12:43, Gary Chambers wrote:

> The attached changeset will "fix" this, though perhaps not ideal...
>
> Perhaps it is time to refactor all the Resizer stuff!
>
> Regards, Gary
>
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, January 20, 2011 11:17 AM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
> What does this imply?
>
> Cheers,
> Doru
>
>
> On 20 Jan 2011, at 12:09, Gary Chambers wrote:
>
>> Missed the case where fast dragging setting is enabled....
>>
>> Regards, Gary
>>
>> ----- Original Message ----- From: "Andreas Wacknitz" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, January 18, 2011 8:33 PM
>> Subject: Re: [Pharo-project] splitters in table layout
>>
>>
>>
>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>
>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he actually sent two, and you should pick the second one).
>>>
>>> Cheers,
>>> Doru
>>>
>> Ah, thank you. I have found two messages with changesets from January 11th, 2011.
>> After I filein the second changeset alas I will get a DNU Morph>>doFastWindowReframe: when I move the splitter...
>>
>> Regards,
>> Andreas
>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "Reasonable is what we are accustomed with."
>
> <EdgeGripFastReframeFix.1.cs>

--
www.tudorgirba.com

"Problem solving should be focused on describing
the problem in a way that makes the solution obvious."





Reply | Threaded
Open this post in threaded view
|

Re: splitters in table layout

Gary Chambers-4
Well, that is the main intentional difference between having the fast
dragging setting on or off ;-)

Regards, Gary

----- Original Message -----
From: "Tudor Girba" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, January 20, 2011 9:05 PM
Subject: Re: [Pharo-project] splitters in table layout


Hi Gary,

Indeed, this stops the debugger popping out. However, resizing is not live
(only when I mouseUp: does the scroll pane refresh). Is there a quick way to
solve this issue, or should we just go with this fix for the moment?

Cheers,
Doru



On 20 Jan 2011, at 12:43, Gary Chambers wrote:

> The attached changeset will "fix" this, though perhaps not ideal...
>
> Perhaps it is time to refactor all the Resizer stuff!
>
> Regards, Gary
>
>
> ----- Original Message ----- From: "Tudor Girba" <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, January 20, 2011 11:17 AM
> Subject: Re: [Pharo-project] splitters in table layout
>
>
> What does this imply?
>
> Cheers,
> Doru
>
>
> On 20 Jan 2011, at 12:09, Gary Chambers wrote:
>
>> Missed the case where fast dragging setting is enabled....
>>
>> Regards, Gary
>>
>> ----- Original Message ----- From: "Andreas Wacknitz" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, January 18, 2011 8:33 PM
>> Subject: Re: [Pharo-project] splitters in table layout
>>
>>
>>
>> Am 18.01.2011 um 20:58 schrieb Tudor Girba:
>>
>>> Yes, you missed a changeset Gary sent in the aligning morphs thread (he
>>> actually sent two, and you should pick the second one).
>>>
>>> Cheers,
>>> Doru
>>>
>> Ah, thank you. I have found two messages with changesets from January
>> 11th, 2011.
>> After I filein the second changeset alas I will get a DNU
>> Morph>>doFastWindowReframe: when I move the splitter...
>>
>> Regards,
>> Andreas
>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "Reasonable is what we are accustomed with."
>
> <EdgeGripFastReframeFix.1.cs>

--
www.tudorgirba.com

"Problem solving should be focused on describing
the problem in a way that makes the solution obvious."