Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libform Redraw field when the flags for the field change...
details: https://anonhg.NetBSD.org/src/rev/58937cfa09ce
branches: trunk
changeset: 534803:58937cfa09ce
user: blymn <blymn%NetBSD.org@localhost>
date: Sat Aug 03 14:34:22 2002 +0000
description:
Redraw field when the flags for the field change iff the field is
attached to a form and the form is posted.
diffstat:
lib/libform/field.c | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diffs (55 lines):
diff -r 2110ee90b86d -r 58937cfa09ce lib/libform/field.c
--- a/lib/libform/field.c Sat Aug 03 13:12:44 2002 +0000
+++ b/lib/libform/field.c Sat Aug 03 14:34:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: field.c,v 1.18 2002/07/31 01:28:32 blymn Exp $ */
+/* $NetBSD: field.c,v 1.19 2002/08/03 14:34:22 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
* (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -131,6 +131,14 @@
fp->opts = options;
+ /* if appropriate, redraw the field */
+ if ((field != NULL) && (field->parent != NULL)
+ && (field->parent->posted == 1)) {
+ _formi_redraw_field(field->parent, field->index);
+ pos_form_cursor(field->parent);
+ wrefresh(field->parent->scrwin);
+ }
+
return E_OK;
}
@@ -157,6 +165,14 @@
}
fp->opts |= options;
+
+ /* if appropriate, redraw the field */
+ if ((field != NULL) && (field->parent != NULL)
+ && (field->parent->posted == 1)) {
+ _formi_redraw_field(field->parent, field->index);
+ pos_form_cursor(field->parent);
+ wrefresh(field->parent->scrwin);
+ }
return E_OK;
}
@@ -175,6 +191,15 @@
return E_CURRENT;
fp->opts &= ~options;
+
+ /* if appropriate, redraw the field */
+ if ((field != NULL) && (field->parent != NULL)
+ && (field->parent->posted == 1)) {
+ _formi_redraw_field(field->parent, field->index);
+ pos_form_cursor(field->parent);
+ wrefresh(field->parent->scrwin);
+ }
+
return E_OK;
}
Home |
Main Index |
Thread Index |
Old Index