]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/sample-form_demo-handler.ads
ncurses 4.1
[ncurses.git] / Ada95 / samples / sample-form_demo-handler.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                       GNAT ncurses Binding Samples                       --
4 --                                                                          --
5 --                          Sample.Form_Demo.Handler                        --
6 --                                                                          --
7 --                                 S P E C                                  --
8 --                                                                          --
9 --  Version 00.92                                                           --
10 --                                                                          --
11 --  The ncurses Ada95 binding is copyrighted 1996 by                        --
12 --  Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de                     --
13 --                                                                          --
14 --  Permission is hereby granted to reproduce and distribute this           --
15 --  binding by any means and for any fee, whether alone or as part          --
16 --  of a larger distribution, in source or in binary form, PROVIDED         --
17 --  this notice is included with any such distribution, and is not          --
18 --  removed from any of its header files. Mention of ncurses and the        --
19 --  author of this binding in any applications linked with it is            --
20 --  highly appreciated.                                                     --
21 --                                                                          --
22 --  This binding comes AS IS with no warranty, implied or expressed.        --
23 ------------------------------------------------------------------------------
24 --  Version Control
25 --  $Revision: 1.2 $
26 ------------------------------------------------------------------------------
27 with Terminal_Interface.Curses;
28 use  Terminal_Interface.Curses;
29 with Terminal_Interface.Curses.Panels;
30 use  Terminal_Interface.Curses.Panels;
31 with Terminal_Interface.Curses.Forms;
32 use  Terminal_Interface.Curses.Forms;
33
34 generic
35    with function  My_Driver (Frm : Form;
36                              K   : Key_Code;
37                              Pan : Panel) return Boolean;
38 package Sample.Form_Demo.Handler is
39
40    procedure Drive_Me (F     : in Form;
41                        Lin   : in Line_Position;
42                        Col   : in Column_Position;
43                        Title : in String := "");
44    --  Position the menu at the given point and drive it.
45
46    procedure Drive_Me (F     : in Form;
47                        Title : in String := "");
48    --  Center menu and drive it.
49
50 end Sample.Form_Demo.Handler;