> is it possible to do moreover changes in 2.20 version, like the
> follow:
> The current version send notification messages when the text is
> changed.
> But because I use splitting windows, I have to handle these messages
> two times, one message from each view.
> As long as in splitting windows the two views share the same memory
> pointer, it should be preferable these messages to send from
> document, instead from views.
This would be a major change and wouldn't suit one of the reasons
for the notifications which is to redisplay modified data in each view
when changes occur.
> In this way, users can handle notifications once to manage Undo-Redo,
> text changed e.t.c.
If you don't want to receive notifications from one view then
change its modification event mask with SCI_SETMODEVENTMASK.
Neil
> a text and I split this in two views.Of course, I have two views for
> the same document.
> When I select a part of text in the first view, with mouse for
> example,
> the second view does not affect and I can select with mouse another,
> different, part of text.
This is the common behaviour for applications with multiple views.
For example, Visual Studio and Xcode both work this way.
> In this case I have two different selected text for the same document.
> Whether is the actual selected text ?
There are separate selections for each view.
> How can I solve this problem ?
> The only way that I can do, is to take the selection from one view and
> to send
> the relevant message to the other view for update this.
If you want to have both views always have the same selection then
you must copy changes in selection from one view to the other.
Neil
You should think about other forms of selection like rectangular
and multiple selections and whether you want to support them.
Neil