How to bind a workspace in a bookmorph ?

Ned Konz ned at bike-nomad.com
Fri Apr 23 16:56:05 UTC 2004


On Friday 23 April 2004 9:12 am, Serge Stinckwich wrote:

> i'm trying to bind a Workspace inside a page of a BookMorph. How can do
> this ?

Either use the halos on a Workspace window to drag out the PluggableTextMorph 
and add it to a page, or do something like this:

myBookMorph currentPage 
layoutPolicy: ProportionalLayout new;
addMorph: ((PluggableTextMorph on: Workspace new text: #contents accept: 
#acceptContents: readSelection: nil menu: #codePaneMenu:shifted:))
	fullFrame: (LayoutFrame fractions: (0 at 0 corner: 1 at 1)
		offsets: (10 at 10 corner: -10 at -10))

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list