From 3d327e0ca0eca55b0dc88cb923b7706b7594f38c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 16 Apr 2012 16:04:00 +1000 Subject: Implemented find indicator with animation for OS X. --- cocoa/ScintillaTest/AppController.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cocoa/ScintillaTest/AppController.mm') 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]; } -- cgit v1.2.3