[Cuis-dev] Other Balloon text concern
Luciano Notarfrancesco
luchiano at gmail.com
Sun Feb 8 04:01:32 PST 2026
My first thought is that this is normal behavior, but should think more
about this and look at how hover text begaves in other GUIs so that we
don’t reinvent (or break) the wheel.
There is also the concept of “locked” submorphs. When a submorph is locked
it doesn’t receive any events, it behaves as if it was just a drawing made
in the drawOn: of its owner. I have doubts about wether it is good to have
this concept, are we usining at all? Anyway, I guess if your submorphs are
locked they won’t receive mouse enter/leave events and perhaps you won’t
need to set their balloon texts as you do, not sure, maybe worth trying (at
least for the labels and other morphs that dont need handling mouse events).
On Sun, Feb 8, 2026 at 18:43 Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> Hi,
>
> I don't know if this can be improved, but I think it is worth sharing this
> minor concern.
>
> Observe in the code below, to build a simple view, how I need to duplicate
> the balloon text to all the view sub-morphs. The expected behavior was that
> balloon text will be needed for the encompassing morph (top view) if no
> balloon text was set in the sub-morphs.
>
> But may, be this should be the normal behavior.
>
> initialize
> | scroll |
> super initialize.
> self beColumn.
> date := LabelMorph contents: (model date printFormat: #(1 2 3 $/ 1 1 1)) fontSize: 12 emphasis: 1.
> date *setBalloonText*: model balloonText.
> description := TextParagraphMorph contents: (model description justified italic pointSize: 10)::
> color: Color white ;
> setHeightOnContent ;
> *setBalloonText*: model balloonText;
> borderWidth: 0.
> self addMorph: date layoutSpec: LayoutSpec keepMorphExtent ;
> addMorphUseAll: (scroll := PluggableScrollPane new
> layoutSpec: LayoutSpec useAll;
> *setBalloonText*: model balloonText;
> color: Color white;
> scroller: description);
> morphExtent: TimelineEntryView extent.
> scroll adoptWidgetsColor: self defaultColor.
> scroll verticalScrollBar morphWidth: 6.
> self *setBalloonText*: model balloonText
>
>
> -- http://mamot.fr/@drgeo
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260208/9f5cfdeb/attachment-0001.htm>
More information about the Cuis-dev
mailing list