[Cuis-dev] [ChangeSet] TextParagraphMorph

Juan Vuletich juan at jvuletich.org
Sat Nov 27 04:25:27 PST 2021


On 11/26/2021 7:32 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi Juan,
>
> Here is a small change set over your recent TextParagraphMorph to add 
> background and border by inheriting from WidgetMorph.
>
> I want to use this morph has a status bar information widget in DrGeo 
> window.
>
> There is still an issue I can't fix: the text is drawn over the 
> border, not sure there is an elegant way to solve it without redrawing 
> the border, which ruin the inheritance. It is a bit like 
> #textComposition:bounds:color:selectionColor: is not strickly honoring 
> the bounds argument.
>
> I let check out. I have another change of the drawnOn: method but you 
> may have better idea
>
> Hilaire
>
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu

Hi Hilaire.

The way for text not to overwrite the border is to give the 
TextComposition the appropriate extent. Just pushed to GitHub an update 
that includes this together with your fix.

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
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211127/6929b17a/attachment-0001.htm>


More information about the Cuis-dev mailing list