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

SCN_UPDATEUI populating notification.Updated #101

@vinsworldcom

Description

@vinsworldcom

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:

  1. 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.
  2. Indeed there is a bug and the Updated field of ScNotification is not getting updated properly during SCN_UPDATEUI notification events.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions