[Pharo-project] Customizing the Caret of a PluggableTextMorph
benjamin.vanryseghem.pharo at gmail.com
Mon Jul 16 16:50:28 EDT 2012
Indeed it was :)
Alain Plantec did a great job about that :)
On Jul 16, 2012, at 10:27 PM, phil at highoctane.be wrote:
> I am also spending a hell of a lot of time on Text, Paragraph, Styler and other things like that (TextAttribute and subclasses).
> Very complicated indeed. It was worse before I have been told.
> 2012/7/16 Sean P. DeNigris <sean at clipperadams.com>
> For VimPharo, I want to have a different cursor depending on whether a tool
> is in insert or normal mode.
> I tried a handful of ways, but they all failed or worked
> partially/inconsistently. Here's some of them:
> * add the state to the paragraph, but the entire paragraph gets replaced
> during the life of the tool, so the state gets lost
> * add the state to the editor, but the situation is the same
> * add the state to PluggableTextMorph, override and access it from
> TextMorphForEditView>>updateFromParagraph. This was an extreme PITA and got
> me very acquainted with the emergency evaluator. It "worked", but only after
> using the arrows a bit.
> Does anyone have any idea where I might hook in?
> <rant>I find the whole text system very confusing. What the heck does a
> paragraph know about insertion points?? A view has one paragraph object,
> even if there are several paragraphs (as understood by the rest of humanity
> as a block of text with breaks between the adjoining ones. Editors and
> Paragraphs are thrown out and replaced on a whim. I'm finding it very hard
> to understand and modify</rant>
> View this message in context: http://forum.world.st/Customizing-the-Caret-of-a-PluggableTextMorph-tp4640245.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev