-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 2000 Free Software Foundation, Inc. --
+-- Copyright (c) 2000-2004,2006 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
------------------------------------------------------------------------------
-- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000
-- Version Control
--- $Revision: 1.1 $
+-- $Revision: 1.5 $
+-- $Date: 2006/06/25 14:24:40 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with ncurses2.util; use ncurses2.util;
);
c : Key_Code := Getchar (w);
- me : Field := Current (f);
+ me : constant Field := Current (f);
begin
if c = Character'Pos (']') mod 16#20# then
end form_virtualize;
function my_form_driver (f : Form; c : Key_Code) return Boolean is
- flag : Driver_Result := Driver (f, F_Validate_Field);
+ flag : constant Driver_Result := Driver (f, F_Validate_Field);
begin
if c = Form_Request_Code'Last + 1
and flag = Form_Ok then
function make_label (frow : Line_Position;
fcol : Column_Position;
label : String) return Field is
- f : Field := Create (1, label'Length, frow, fcol, 0, 0);
+ f : constant Field := Create (1, label'Length, frow, fcol, 0, 0);
o : Field_Option_Set := Get_Options (f);
begin
if f /= Null_Field then
end erase_form;
finished : Boolean := False;
- f : Field_Array_Access := new Field_Array (1 .. 12);
+ f : constant Field_Array_Access := new Field_Array (1 .. 12);
secure : Field;
myform : Form;
w : Window;