Przeglądaj źródła

SCI_AUTOCSETSTYLEOFFSET -> SCI_AUTOCSETSTYLE.

Martijn Laan 1 rok temu
rodzic
commit
9b34e9b816
3 zmienionych plików z 8 dodań i 8 usunięć
  1. 6 6
      Components/ScintEdit.pas
  2. BIN
      Files/isscint.dll
  3. 2 2
      Projects/Src/IsscintInt.pas

+ 6 - 6
Components/ScintEdit.pas

@@ -94,7 +94,7 @@ type
     FAcceptDroppedFiles: Boolean;
     FAutoCompleteFontName: String;
     FAutoCompleteFontSize: Integer;
-    FAutoCompleteStyleOffset: Integer;
+    FAutoCompleteStyle: Integer;
     FChangeHistory: TScintChangeHistory;
     FCodePage: Integer;
     FDirectPtr: Pointer;
@@ -2185,12 +2185,12 @@ begin
     { Note: Scintilla doesn't actually use the colors set here }
     DefaultAttr.ForeColor := clWindowText;
     DefaultAttr.BackColor := clWindow;
-    if FAutoCompleteStyleOffset = 0 then
-      FAutoCompleteStyleOffset := Call(SCI_ALLOCATEEXTENDEDSTYLES, 1, 0);
-    SetStyleAttr(STYLE_DEFAULT + FAutoCompleteStyleOffset, DefaultAttr, True);
-    Call(SCI_AUTOCSETSTYLEOFFSET, FAutoCompleteStyleOffset, 0);
+    if FAutoCompleteStyle = 0 then
+      FAutoCompleteStyle := Call(SCI_ALLOCATEEXTENDEDSTYLES, 1, 0);
+    SetStyleAttr(FAutoCompleteStyle, DefaultAttr, True);
+    Call(SCI_AUTOCSETSTYLE, FAutoCompleteStyle, 0);
   end else
-    Call(SCI_AUTOCSETSTYLEOFFSET, 0, 0);
+    Call(SCI_AUTOCSETSTYLE, 0, 0);
 end;
 
 function TScintEdit.WordAtCursor: String;

BIN
Files/isscint.dll


+ 2 - 2
Projects/Src/IsscintInt.pas

@@ -14,8 +14,8 @@ interface
 const
   SC_MARK_BACKFORE = 34;
   SCI_CUTALLOWLINE = 2805;
-  SCI_AUTOCSETSTYLEOFFSET = 2806;
-  SCI_AUTOGSETSTYLEOFFSET = 2807;
+  SCI_AUTOCSETSTYLE = 2806;
+  SCI_AUTOGSETSTYLE = 2807;
   SC_MASK_HISTORY = $01E00000;
 
 implementation