Commit Graph

35 Commits

Author SHA1 Message Date
jkh
796518d068 Prevent spaces from being interpreted as accelerators. 1999-12-14 04:18:22 +00:00
jkh
83c2f5687e Go on one of my periodic rampages through this code, trying to make
it DTRT.  In the process, discover the usual 10-15 evil bogons which
have been lurking in it for years.  This closes, for one thing, the
recent report Mike Smith made about nested checklist menus returning
with the scrolling region messed up.
1997-01-17 08:19:19 +00:00
jkh
aaad85f64d Allow emacs-style next/prev characters as well as arrow keys so that
I can offer this as a consistent feature.
1997-01-15 02:50:48 +00:00
joerg
3ff0051e69 Pull the fix from rev 1.31.2.1; i've accidentally committed it to
2.2 first.
1996-12-26 18:47:11 +00:00
jkh
d79c848b15 1. Remove some ancient bogons from when I initially added dialogMenuItem
support.
2. Have message boxes say "Continue" instead of "Exit"
1996-07-11 18:22:16 +00:00
jkh
eef290ac5f Fix a couple of whoopers which somehow went undetected until now. 1996-07-11 11:15:28 +00:00
jkh
14ae3a02bd Add missing dialog_clear() calls. 1996-07-05 07:42:23 +00:00
jkh
87634a8e4d Fix the OK/Cancel accellerator bogon I introduced a few days back. 1996-04-28 02:13:07 +00:00
jkh
96b3d4b605 Fix a bogon with ok/cancel callback usage. 1996-04-27 01:52:15 +00:00
jkh
bd013f51f7 More custom hackery to deal with issues discovered in sysinstall. 1996-04-25 17:27:18 +00:00
jkh
826192f359 Allow some post-fire actions to be combined in ways that weren't
possible before.
1996-04-25 13:34:37 +00:00
jkh
84accdee09 alloca() was being called with highly bogus arguments due to brain
fade.  Fixed.
1996-04-25 01:50:18 +00:00
jkh
70a317a618 Cosmetic tweaks. 1996-04-23 01:25:04 +00:00
jkh
3530e10a1a Another bug fix for the DITEM_REDRAW case. 1996-04-20 01:56:06 +00:00
jkh
e1617c234c Make the DITEM_RECREATE option work properly. 1996-04-20 01:28:20 +00:00
jkh
2ee0ebfbc4 Fix a bug which did not properly bias checklist items by their scroll
factor.
1996-04-19 10:39:16 +00:00
jkh
a4dd56c7c9 Remove a long-standing window leak I just noticed. 1996-04-18 13:36:39 +00:00
jkh
adeba4991f Remove the special-case behavior for fire actions that return
DITEM_FAILURE - formerly they would simply act as an implicit "continue",
but this is wrong.  If you want this behavior, you should now return
with the DITEM_CONTINUE flag set.

Also make the semantics of DITEM_RESTORE quite a bit different - rather
than restore the screen back to pre-menu state, we restore the menu
itself.  This is more correct for a variety of reasons when dealing with
nested menus (whoops!).
1996-04-18 13:21:26 +00:00
jkh
24a0bc2e77 More changes to attempt to make this whole new dialog scheme more
robust.  The new "fire" actions, while affording signficantly more
interactivity to libdialog, come at a cost - if the fire action trashes
the screen then you're not going to be in Kansas anymore when you
come back to the menu and there had better be considerable extra
smarts in place for coping with such a situation.  These changes are my
attempt to do just that.
1996-04-16 12:17:27 +00:00
jkh
06a2488050 Refresh dialogs if a callback action fails. 1996-04-08 10:02:55 +00:00
jkh
cb56a0376f Fix small bug with negative item_no. 1996-01-10 13:57:46 +00:00
jkh
17c6a37b39 Refresh before calling selection hook. 1996-01-05 04:00:51 +00:00
jkh
ff9186df13 Next round of changes - make dialog boxes drawable at arbitrary X,Y locations
and add selection traversal callbacks so context-sensitive behavior can
even be implemented for individual menu items.  These work around the two
largest issues holding me back with some of my sysinstall changes.
1996-01-01 03:43:58 +00:00
jkh
09146e9c17 Add changes to:
o Support a new, fully backwards-compatible API for controling
	  individual items in dialog menus.
	o Write a man page.
	o Add some test code.
1995-12-23 01:10:20 +00:00
rgrimes
2ad6f3dee6 Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
ache
bcf65c80f5 Fix arrows printout for non-arrows keys in menubox
Move arrows printout to single kernel function
Add PgUp/PgDn/Home/End to checkbox and radiobox
1995-03-02 01:03:39 +00:00
ache
8606846519 file selector, helpline, helpfile and more, with my fixes
Submitted by: wmbfmk@urc.tue.nl
1995-02-15 19:44:08 +00:00
ache
6a9b44b167 Add more range/argument checking
Submitted by: charnier@lirmm.fr
1995-01-30 14:11:58 +00:00
ache
91b9eb92f4 silently restrict all boxes to LINES, COLS 1994-11-18 22:49:09 +00:00
ache
afba98eb13 Fix original bug with wrong calculated dims for items list.
Add args check for functions when autosizing impossible.
1994-11-17 19:21:51 +00:00
ache
e26dcdfe6d Full autosizing support, now you can pass -1, -1 for any
string
1994-11-16 14:37:37 +00:00
ache
cc17583236 Add pointer check after each newwin/subwin with error diagnostic 1994-10-31 04:02:31 +00:00
ache
a984cc06a4 Implement dialog_prgbox() function which allows run program
(via pipe) with output to dialog box
1994-10-28 03:08:28 +00:00
ache
ab76452c48 Declare more functions externally.
Don't forget to use 'make beforeinstall'...
1994-10-20 21:56:45 +00:00
ache
ef40875ab1 Make all dialog box available from C programs via functions calls 1994-10-11 23:30:51 +00:00