1 ------------------------------------------------------------------------------
3 -- GNAT ncurses Binding Samples --
5 -- Sample.Form_Demo.Handler --
11 -- The ncurses Ada95 binding is copyrighted 1996 by --
12 -- Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de --
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. --
22 -- This binding comes AS IS with no warranty, implied or expressed. --
23 ------------------------------------------------------------------------------
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;
35 with function My_Driver (Frm : Form;
37 Pan : Panel) return Boolean;
38 package Sample.Form_Demo.Handler is
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.
46 procedure Drive_Me (F : in Form;
47 Title : in String := "");
48 -- Center menu and drive it.
50 end Sample.Form_Demo.Handler;