Why is Scintilla doing this?
Andrew Truckle <[email protected]>
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
Here is my saving code:
Scintilla::Position nBytesToWrite{ m_edit.GetLength() };
const char* CharacterPointer = m_edit.GetCharacterPointer();
while (nBytesToWrite > 0)
{
Scintilla::Position nDataToWrite{ nBytesToWrite };
if (nDataToWrite > UINT_MAX)
nDataToWrite = UINT_MAX;
#pragma warning(suppress: 26472)
file.Write(CharacterPointer, static_cast<UINT>(nDataToWrite));
// Prepare for the next loop around
#pragma warning(suppress: 26481)
CharacterPointer += nDataToWrite;
nBytesToWrite -= nDataToWrite;
}
It works really well. But I have two annoying side effects:
1. It selects all the text.
2. It scrolls all the way to the bottom.
I don't want it to do any of this. The cursor should stay where it was and
it shouldn't select all the text.
Why is it doing this?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/9cb17bd5-014d-4a9e-a0ec-4013d2478218n%40googlegroups.com.