Ok, I see. That's not good, but thanks.
However, TextModel has selection as instance variable, so maybe I could
implement event that I need?

2015-01-19 15:13 GMT+01:00 Nicolai Hess <nicolaih...@web.de>:

>
> 2015-01-19 14:36 GMT+01:00 Mark Rizun <mri...@gmail.com>:
>
>> Hi everyione,
>>
>> When one selects piece of code in any code editor pane, every other same
>> piece is highlighted with less bright color.
>> I'm using spec to build a UI and would like to know which event is
>> responsible for this highlihts.
>>
>
> This is in TextMorphForEditView>>#selectionChanged.
> Recognizing this change and searching/updating other selections are only
> handled between the TextMorph and the Text Paragraph
> (Paragraph>>#displayExtraSelectionOn:)
> I don't think Spec (or  the TextModel class) is aware of this property.
> (The same for findAndReplace-search results).
>
>
>> For example, in TextModel there is one event that probably is related to
>> my
>> problem, but I'm not sure: #whenReadSelectionIsChanged:
>> So, what I want is to use the event which is invoked when selection of
>> code
>> is changed - probably it is the name of event :)
>>
>> Mark
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Code-highlight-tp4800337.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>

Reply via email to