aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaTest/AppController.mm
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-04-16 16:04:00 +1000
committernyamatongwe <nyamatongwe@gmail.com>2012-04-16 16:04:00 +1000
commit3d327e0ca0eca55b0dc88cb923b7706b7594f38c (patch)
tree72d1732501753bc44e5646e788b17df37e01c897 /cocoa/ScintillaTest/AppController.mm
parent2d10600700ebff2919c3e7c19f832fed3eea84bb (diff)
downloadscintilla-mirror-3d327e0ca0eca55b0dc88cb923b7706b7594f38c.tar.gz
Implemented find indicator with animation for OS X.
Diffstat (limited to 'cocoa/ScintillaTest/AppController.mm')
-rw-r--r--cocoa/ScintillaTest/AppController.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm
index fc8c331c4..c28974109 100644
--- a/cocoa/ScintillaTest/AppController.mm
+++ b/cocoa/ScintillaTest/AppController.mm
@@ -262,6 +262,11 @@ static const char * box_xpm[] = {
wholeWord: NO
scrollTo: YES
wrap: YES];
+
+ long matchStart = [mEditor getGeneralProperty: SCI_GETSELECTIONSTART parameter: 0];
+ long matchEnd = [mEditor getGeneralProperty: SCI_GETSELECTIONEND parameter: 0];
+ [mEditor setGeneralProperty: SCI_FINDINDICATORFLASH parameter: matchStart value:matchEnd];
+
if ([[searchField stringValue] isEqualToString: @"XX"])
[self showAutocompletion];
}