[Q][3.8g][Morphic] How do I use the PluggableTabBarMorph?

Thomas Koenig tomkoenig at mindspring.com
Fri Dec 17 23:02:43 UTC 2004


If you install BFAV2, you will see another example in
PatchArchiveClient.  Right now PAC uses its own version of
PluggableTabBarMorph (I'll refactor soon) but the s PluggableTabBarMorph
usage should still be a good guide. 

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of Hannes Hirzel
> Sent: Tuesday, December 14, 2004 5:29 PM
> To: The general-purpose Squeak developers list
> Subject: [Q][3.8g][Morphic] How do I use the PluggableTabBarMorph?
> 
> 
> Hi
> 
> The PluggableTabBarMorph is a new addition to version 3.8
> 
> It contains a very simple example in the class comment.
> 
> (PluggableTabBarMorph on: nil)
> 	addTab: (Text fromString: 'Test') withAction: 
> [Transcript show: 'Test'; 
> cr];
> 	addTab: (Text fromString: 'Another') withAction: 
> [Transcript show: 
> 'Another'; cr];
> 	width: 200;
> 	openInHand
> 
> 
> I would like to have a more elaborate one:
> 
> 
> Five tabs: 'Step 1', 'Step 2', 'Step 3', 'Step 4', 'Step 5'
> 
> with 5 different Workspaces/StringHolders/PasteUpMorphs  as 
> the content. This would be a simple replacement for a 
> BookMorph for presenting content.
> 
> How do I do that?
> 
> Probably this is not more than 20 loc?
> 
> Any suggestions?
> 
> David Shaffer uses this morph in his keybinding package but 
> there in the 
> tab pane there is one list which is filled with new data each time a 
> user selects another tab. The morph is well written but it is still a 
> considerable effort to analyse it.
> 
> Thank you for your suggestions.
> 
> Hannes
> 
> 
> 
> 
> 




More information about the Squeak-dev mailing list