Commit Graph

21 Commits

Author SHA1 Message Date
blymn c4f23a93e4 Added extension to interface, set_field_printf which allows a printf
style setting of field buffers.
2002-08-09 14:15:12 +00:00
blymn ad3d412058 set_field_opts and field_opts_on were both using the wrong pointer
resulting in libform crashing if O_STATIC was set on the default field.
2002-08-05 12:43:44 +00:00
blymn 8d09f0f70d Redraw field when the flags for the field change iff the field is
attached to a form and the form is posted.
2002-08-03 14:34:22 +00:00
blymn fa8f5d02f8 Reposition form cursor after field redrawn when setting a field value,
since the field set may not be the current one.  This fixes PR 17533.
2002-07-31 01:28:32 +00:00
blymn d0d41d9fd4 * Fix cursor motion bugs referred to in pr 17480
* Handle cursor motion for justifications other than left justified.
2002-07-29 05:17:37 +00:00
blymn 8845943881 Prevent set_field_buffer from redrawing field that is attached to a form
when the form is not posted.
2002-07-04 10:51:02 +00:00
blymn 759e545dce * Major rework to allow the TAB character in fields. 2002-05-20 15:00:11 +00:00
blymn cc66fb4a40 Add missing function and make some error returns into proper eti.h
errors.
2001-07-08 12:15:06 +00:00
blymn 2a68310bea Fix limits on dynamic fields. 2001-06-28 11:38:19 +00:00
wiz c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
blymn cf2022720d * Only line wrap buffer 0 in set_field_buffer since this is the
only one displayed.
2001-06-04 11:42:09 +00:00
blymn 7ffbe072ab * Rototilled internals to make multiline fields work correctly. Some
bugs remain such as vertical scrolling is not working and the field
  is not correctly redrawn after being cleared.  There are bound to be
  others.
2001-05-11 14:04:48 +00:00
blymn 47eb37d515 * Fixed horizontal scrolling. 2001-04-06 05:24:59 +00:00
blymn 6c29066dc9 * truncate field contents to field length if field is or becomes static
* Allow field options to be changed when field posted unless field
   is the current one.
 * Allow field justification to be changed when field posted unless it
   is the current one.
 * dynamic_field_info now returns field size in rows and columns if
   the field is static - previously this was an error.
2001-03-25 12:21:06 +00:00
blymn 9bb8631d38 replace strncpy with strlcpy.... 'nuff said. 2001-02-16 03:19:32 +00:00
blymn 6cda6dc59f Truncate the buffer string to the field buffer size if the field is static. 2001-02-15 05:20:42 +00:00
blymn 7ce7b46217 Buffer now wrapped and redrawn when buffer is set. 2001-02-03 12:35:14 +00:00
blymn 790e1a7fb4 When buffers are created they are given an empty string instead of just
being set to NULL.  Stops us returning a NULL pointer for buffers that
are never set.
2001-01-30 06:33:51 +00:00
blymn c021922626 Multiple fixes:
* A debug version of libform will be build if DEBUG_FORMS is defined
* Can no longer edit fields that do not have O_EDIT set
* Changed background attribute to A_NORMAL like ncurses
* Fixed truncation of field contents when content length == field length
* Current field is set to first visible & active field on form post
2001-01-16 01:02:47 +00:00
blymn af28ef95ea * Changed type of userptr to be void * (now matches ncurses)
* Bumped lib major version due to above.
* Changed debug output to go to a file instead of stderr, the file gets
  opened when the form is posted iff one is not already open.
2001-01-04 12:30:37 +00:00
blymn 4185942834 Added early release version of libform - please be gentle. 2000-12-17 12:04:30 +00:00