bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forms: set_field_type, submit button


From: Thomas Dickey
Subject: Re: forms: set_field_type, submit button
Date: Wed, 27 Apr 2005 09:25:45 -0400 (EDT)

On Wed, 27 Apr 2005, Moritz Beller wrote:

On Tue, 26 Apr 2005 17:01:06 -0400 (EDT)
Thomas Dickey <address@hidden> wrote:

I think you could do it by making your program keep track of the
keystrokes (it has to anyway), and when doing a next-field from the
last  field of the form, translate that into an application code that
your  program can use to switch to the Ok/Cancel buttons.  I don't
recall any  example within ncurses that does that sort of traversal,
but dialog does  it (I've made the logic for the bottom row of buttons
reusable for the  different widgets).

Ok, so the only questions that's left is how to create an ok button with
ncurses?

dialog uses (n)curses to build the button.  ncurses itself doesn't have
any buttons (other than softlabels, which only come in a few flavors).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]