Gary,

That is exactly what I am trying to do.  THANKS!!!!!!!

Bill



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Gary Chambers
Sent: Friday, January 08, 2010 12:58 PM
To: [email protected]
Subject: Re: [Pharo-project] Stumped on splitters

Directly within a System window or added programatically in some submorph?
If directly it should happen automatically.

Otherwise try something like this...


|leftWidth left right main|
leftWidth := 100.
left := Morph new color: Color yellow.
right := Morph new color: Color green.
main := BorderedMorph new
 changeProportionalLayout;
 addMorph: left
 fullFrame: (LayoutFrame
  fractions: (0...@0 corner: 0...@1)
  offsets: (0...@0 corner: leftWidth - (ProportionalSplitterMorph splitterWidth 
// 2) @ 0));
 addMorph: right
 fullFrame: (LayoutFrame
  fractions: (0...@0 corner: 1...@1)
  offsets: (ProportionalSplitterMorph splitterWidth // 2 + leftwi...@0
corner: 0...@0));
 addPaneVSplitterBetween: left and: {right};
 extent: 2...@150.
main splitters last
 addLeftOrTop: left;
 addRightOrBottom: right.
main openInWindow

Regards, Gary

----- Original Message -----
From: "Schwab,Wilhelm K" <[email protected]>
To: <[email protected]>
Sent: Friday, January 08, 2010 5:36 PM
Subject: Re: [Pharo-project] Stumped on splitters


> Gary,
>
> Can you think of a good example of two panes side by side (or one above 
> the other) with a splitter between them?  So far, I can't find one that 
> I've been able to follow.
>
> Bill
>
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Gary 
> Chambers
> Sent: Friday, January 08, 2010 10:31 AM
> To: [email protected]
> Subject: Re: [Pharo-project] Stumped on splitters
>
> Bill,
>
> splitters are added automatically for SystemWindow panes. Polymorph does 
> fix the previously erratic behaviour of splitters for SystemWindows, 
> though problems still remain in the general BorderedMorph cases.
> Splitters are based around the ProportionalLayout specifications for a 
> Morph so particularly unusual layouts have the potential to mess up, 
> though not seen any bad cases myself.
>
> While possible to add ProportionalSplitterMorphs manually, it is a little 
> fiddly.
>
> Regards, Gary
>
> ----- Original Message -----
> From: "Schwab,Wilhelm K" <[email protected]>
> To: <[email protected]>
> Sent: Friday, January 08, 2010 2:54 PM
> Subject: [Pharo-project] Stumped on splitters
>
>
>> Gary,
>>
>> I have a couple of Polymorph based tools (essentially very specialized
>> inspectors for specific data sets), and I would like to get splitters
>> working.  So far, I'm getting clobbered.  I found some splitter-adding
>> methods in SystemWindow, but I am not clear on whether they are intended
>> for general use??
>>
>> The browser I am using has working horizontal splitter, but the vertical
>> ones stopped working a couple of versions back, so that might not be the
>> best example to follow.  I have not been able to find where the basic
>> inspector creates its spliter.
>>
>> Any enlightenment or places to start browser would be appreciated.
>>
>> Bill
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project 


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to