[Cuis-dev] Tooltip
Juan Vuletich
JuanVuletich at zoho.com
Wed Feb 23 06:11:31 PST 2022
Hi Folks,
Thanks for the feedback.
(inline)
On 2/22/2022 9:33 AM, Juan Vuletich via Cuis-dev wrote:
> ...
>
> WRT to tooltips, and acknowledging that Hernán wants to be able to
> decide line layout, I see the following options:
>
> 1) A per morph property, as I suggested in #5071 attached yesterday.
> 2) A global preference, that would affect all ToolTips.
> 3) Automatically wordwrap any tooltip text that doesn't include a
> single newline. To force a single unwrapped line, just include a
> newline at the end, ignored by the morph.
>
> I think 3) may be the best option. Hilaire, Hernán, folks, would this
> work for you?
I just pushed option 3, with a minor tweak: avoid word wrap if last
character is a newline, regardless of any additional newlines in the text.
Additionally, code that opens a HoverHelpMorph explicitly, or senders of
#showBalloon:hand: can now specify whether to do word wrap or not.
> BTW, should we rename "Balloon" and "HoverHelp" to "ToolTip" in the
> code? There may be some breackage, but it would become more consistent.
>
Haven't changed this at all. Maybe we'll discuss this further some day.
Thanks,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
@JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220223/d72d0d74/attachment.htm>
More information about the Cuis-dev
mailing list