Removing tabs from a PluggableTabBarMorph.
William G. Davis
william_gordon_davis at yahoo.com
Mon Mar 13 13:18:04 UTC 2006
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
|