This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Description
I have:
public void OnNotification(ScNotification notification)
{
if (notification.Header.Code == (uint)SciMsg.SCN_UPDATEUI)
{
if ((notification.Updated & (uint)SciMsg.SC_UPDATE_V_SCROLL) == (uint)SciMsg.SC_UPDATE_V_SCROLL)
{
...
Trying to match if the notification updated field is equal to SC_UPDATE_V_SCROLL.
Debugging shows me that when vertically scrolling, the value of notification.Updated is 0. Running a PythonScript to show me the value it sees in the SCN_UPDATEUI message, updated field during vertical scrolling - it correctly shows 4.
It could be:
- I don't understand this interface, am not that familiar with C# and am doing it wrong. Please provide a correct working example if so.
- Indeed there is a bug and the
Updated field of ScNotification is not getting updated properly during SCN_UPDATEUI notification events.
Cheers.