[squeak-dev] [BUG] 5.3 Alpha: No Text formatting in tree morphs

Jakob Reschke forums.jakob at resfarm.de
Sat Oct 12 09:19:33 UTC 2019


I also didn't find how it came to be when I had a brief look at the classes
involved with the tree some weeks ago. Yet it used to work and now it
doesn't. Originally I wanted to investigate and compare with Squeak 5.2
further, but unfortunately I won't have the time these weeks.

Am Sa., 12. Okt. 2019 um 10:20 Uhr schrieb Marcel Taeumel <
marcel.taeumel at hpi.de>:

> Hi Jakob,
>
> how do you set the formatting? See:
>
> SimpleHIerarchicalListMorph >> #addMorphsTo:from:...
> SimpleHIerarchicalListMorph >> #font
> IndentingListItemMorph (StringMorph) >> #font:
> IndentingListItemMorph (StringMorph) >> #fontToUse
> ListItemWrapper >> #asString
>
> ...I don't see any support for item-specific text attributes such as the
> font emphasis. Sorry. There has been a discussion about #preferredColor
> though:
>
> http://forum.world.st/The-Inbox-Morphic-pre-1491-mcz-td5100687.html
>
> Best,
> Marcel
>
> Am 12.10.2019 02:31:10 schrieb Jakob Reschke <forums.jakob at resfarm.de>:
> Hi all,
>
> It used to be that you can return a formatted Text from the method
> designated via the label selector of a pluggable tree. This screenshot is
> from Squeak 5.2:
> [image: image.png]
>
> In Trunk, this is broken. With the same code, the node labels are always
> unformatted, (except for the highlight color, which is used in
> ObjectExplorer, for example):
> [image: image.png]
>
> In case it was never supposed to work like that, how can I have
> Text-formatted labels in a pluggable tree in a supported way?
>
> Kind regards,
> Jakob
>
> Code excerpts for reference:
>
> chooserWidgetSpecs: builder
>    ^ {builder pluggableTreeSpec new
>    "..."
>    label: #nodeLabelOf:; "..."
>
> nodeLabelOf: aSquotDiffNode
>    | title |
>    title := aSquotDiffNode title.
>    ^ aSquotDiffNode anyChildNeedsChoice
>       ifTrue: [(Text fromString: title) allBold; yourself]
>       ifFalse: [title]
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191012/c34b8572/attachment.html>


More information about the Squeak-dev mailing list