[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: field_status in forms
From: |
Thomas Dickey |
Subject: |
Re: field_status in forms |
Date: |
Sat, 24 May 2003 20:18:46 -0400 |
User-agent: |
Mutt/1.3.27i |
On Mon, May 19, 2003 at 05:00:13PM +0100, Mike Aubury wrote:
> Can someone explain to me how this works ?
>
> I'm trying to determine if the user has changed the contents of a field and I
> thought (from the man page) this was the function to use..
>
> I've set_field_status to 0 at the beginning - but it appears to be set after
> a
> call to form_driver with a value of 514 (REQ_FIRST_PAGE ?) which obviously
> isn't changing its contents.....
as I understand the code, field status is updated not after every keystroke,
but when the forms package is asked to synchronize its internal state with
the screen. I encountered a similar issue when I was working on demo_forms.c,
and fixed it by forcing a validation (REQ_VALIDATION) on each keystroke.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net