Removing tabs from a PluggableTabBarMorph.

stéphane ducasse ducasse at iam.unibe.ch
Mon Mar 13 15:38:46 UTC 2006


Hi william

Do you have the code to be added? Because in this case, I'm that the  
morphic team will integrate it.

Stef


On 13 mars 06, at 14:18, William G. Davis wrote:

> Hi. I'm currently using Squeak 3.8.
>
> I need a way to remove tabs from a
> PluggableTabBarMorph but it appears that the class
> doesn't support this functionality. Could I suggest it
> be added in 3.9?
>
> Something as simple as changing addTab:withAction: so
> it returns the new PluggableTabMorph object and then
> adding a message like this:
>
> removeTab: aTabMorph
>
> 	 | tabToRemove |
>
> 	tabToRemove := self tabs detect: [:anAssociation |
> anAssociation key = aTabMorph].
> 	tabToRemove ifNil: [^ self].
> 	self tabs remove: tabToRemove.
> 	self layoutChanged.
> 	self changed.
>
> 	aTabMorph delete.
>
> does the trick.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>




More information about the Squeak-dev mailing list