From defb53343417f2cc3ca28c5968322b8bd658364c Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sun, 13 Nov 2016 22:23:47 +1100 Subject: Added find next and find previous --- src/windows-find.ads | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/windows-find.ads') diff --git a/src/windows-find.ads b/src/windows-find.ads index 5931e5f..82895e7 100644 --- a/src/windows-find.ads +++ b/src/windows-find.ads @@ -12,9 +12,13 @@ package Windows.Find is type Find_Window is new FLTK.Widgets.Groups.Windows.Double.Double_Window with private; + type Direction is (Forward, Backward); + + type Find_Callback is access procedure (Item : in String; - Match_Case : in Boolean); + Match_Case : in Boolean; + Facing : in Direction); function Create @@ -37,6 +41,11 @@ package Windows.Find is Func : in Find_Callback); + procedure Do_Callback + (This : in Find_Window; + Dir : in Direction := Forward); + + private -- cgit