|
From: | Mike Aubury |
Subject: | Re: Detecting a full form FIELD |
Date: | Wed, 30 Jun 2021 08:03:56 +0100 |
On Tue, Jun 29, 2021 at 12:37:06PM +0100, Mike Aubury wrote:
> Is there any field option, or way to detect when a field becomes full and
> stop accepting further input.
Not directly, but I think that you could check before passing a printable
character (not an editing control) to form_driver if it would overwrite
existing text.
> At the minute, when I get to the end of the field, the behaviour i'm seeing
> has the last character in the field overwritten by the new character when I
> call form_driver, I can't seem to find a setting to say ignore further
> characters it when full, or a reliable way of detecting when a field is
> already full to stop me calling form_driver.
>
> Any help would be appreciated!
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |