浏览代码

Removed field.

woollybah 6 年之前
父节点
当前提交
dc3052e8ae
共有 2 个文件被更改,包括 6 次插入12 次删除
  1. 4 7
      maxguitextareascintilla.mod/linuxgtk.bmx
  2. 2 5
      maxguitextareascintilla.mod/win32.bmx

+ 4 - 7
maxguitextareascintilla.mod/linuxgtk.bmx

@@ -47,7 +47,6 @@ Type TGTKScintillaTextArea Extends TGTKTextArea
 	Field lineDigits:Int
 	
 	Field showLineNumbers:Int = True
-	Field showCaretLine:Int = True
 
 	' holder for the latest notification
 	' keep one in the type rather than locally in the callback function so we don't have to create a new object for every notification
@@ -499,20 +498,18 @@ Type TGTKScintillaTextArea Extends TGTKTextArea
 	End Method
 	
 	Method SetCaretLineVisible(enabled:Int)
-		showCaretLine = enabled
-		bmx_mgta_scintilla_setcaretlinevisible(sciPtr, showCaretLine)
+		bmx_mgta_scintilla_setcaretlinevisible(sciPtr, enabled)
 	End Method
 
-	Method GetCaretLineVisible:int()
-		showCaretLine = bmx_mgta_scintilla_getcaretlinevisible(sciPtr)
-		Return showCaretLine
+	Method GetCaretLineVisible:Int()
+		Return bmx_mgta_scintilla_getcaretlinevisible(sciPtr)
 	End Method
 
 	Method SetCaretLineBackgroundColor(r:Int, g:Int, b:Int)
 		bmx_mgta_scintilla_setcaretlineback(sciPtr, r, g, b)
 	End Method
 
-	Method GetCaretLineBackgroundColor:int()
+	Method GetCaretLineBackgroundColor:Int()
 		Return bmx_mgta_scintilla_getcaretlineback(sciPtr)
 	End Method
 

+ 2 - 5
maxguitextareascintilla.mod/win32.bmx

@@ -47,7 +47,6 @@ Type TWindowsScintillaTextArea Extends TWindowsTextArea
 	Field lineDigits:Int
 	
 	Field showLineNumbers:Int = True
-	Field showCaretLine:Int = True
 	
 	' holder for the latest notification
 	' keep one in the type rather than locally in the callback function so we don't have to create a new object for every notification
@@ -480,13 +479,11 @@ Type TWindowsScintillaTextArea Extends TWindowsTextArea
 	End Method
 	
 	Method SetCaretLineVisible(enabled:Int)
-		showCaretLine = enabled
-		bmx_mgta_scintilla_setcaretlinevisible(_hwnd, showCaretLine)
+		bmx_mgta_scintilla_setcaretlinevisible(_hwnd, enabled)
 	End Method
 
 	Method GetCaretLineVisible:Int()
-		showCaretLine = bmx_mgta_scintilla_getcaretlinevisible(_hwnd)
-		Return showCaretLine
+		Return bmx_mgta_scintilla_getcaretlinevisible(_hwnd)
 	End Method
 
 	Method SetCaretLineBackgroundColor(r:Int, g:Int, b:Int)