示例#1
0
        /// <summary>
        /// This notification is sent when the text or styling of the document changes or is about to change.
        /// You can set a mask for the notifications that are sent to the container with SCI_SETMODEVENTMASK.
        /// The notification structure contains information about what changed, how the change occurred and
        /// whether this changed the number of lines in the document. No modifications may be performed while
        /// in a SCN_MODIFIED event.
        /// </summary>
        private void scintillaControl_Modified(object sender, Scintilla.ModifiedEventArgs e)
        {
            if (this.IsHandleCreated && e.IsUserChange && ((e.ModificationType & (int)Scintilla.Enums.ModificationFlags.ChangeStyle) == 0))
            {
                Document.Modified = true;
            }

            UpdateMenu();
        }
示例#2
0
 private void inputBox_Modified(object sender, Scintilla.ModifiedEventArgs e)
 {
 }