Date: Mon, 30 Jul 2001 11:31:12 +0200 From: Michal Safranek To: Emil Mikulic (changes:) - Fixed bug in {h,}menu (KEY_NOTHING === KEY_UP / KEY_LEFT) - missing break :( - Fixed bug in textbox, textarea set_buf ... memset(buf, 0, ...) - Added local keyhandlers, global keyhandler is now called before builtin - Changed keyhandlers: no reject/accept - returns key instead (or KEY_NOTHING) - Added fake 'KEY_SUPERVISE' - to 'supervise' all keys - Active form element can be now choosen by user (form state remembering patch) - Added functions to get current [fb]g color - Empty form run() fix - Added onchange handler. It's only meaningful for: check,radio,textarea,textbox - Added ability to change staticLabel - Fixed another bug: accepted chars: 'c > 256' should be 'c > 255' - listing's handler is called before switch() now and uses KEY_* rewriting - Added function to listing to recalc 'count' - usefull when you're playing with lists and need to update count because of list_delete() - Patched listing::update_count() to automagically update "cursor"'s position - Fixed bug in radio code: when 'selecting' radio in constructor it didn't update rGroup info properly ... now it does. - T[AB]'s set_buf now calls onchange handler ... - Fixed bug: ensured memset(buf, 0, size); when constructing TB/TA - Fixed list.c: list_kill implies list_free - list_free && list_kill properly handles NULL list instead of assert_fail - Added textview class (class which can display colorized text from buf/file) (fun stuff:) - in 'Test Dialog' -> 'Text:' press F1 (local keyhandler) - in nearly any part of code you can switch theme correctly (F2, F3) - in upper-right corner is indicator showing pressed keys - SUPERVISE handle - you can have 'onchange' handler on most elements - useful for form checking (see Tachograph's forms :) ) onchange isn't superfluous - it can't be 'simulated' by local keyhandler, because local keyhandler is called *before* key processing and onchange *after*. - you can update listing from handler w/o crash (when you follow simple rules) Also I'm sending you 3 files to 'contrib' section: conv-20010422-1.tgz charset conversion funcs (supports 852,il2,rom,kam encs) fonts-20010422-1.tgz font loading and storing functions keyb-20010422-2.tgz keyboard handler for DJGPP which handles correctly all key-combinations one can generate. Useful for binding to Alt-A, Ctrl-Alt-X or for national-keyboard support. (en,cz keymaps included) These three files are made for Djgpp (Dos) only :(( I'll probably be working on Linux equivalents in near future - but I can't guarantee anything. The contrib section will be the best place for these packages although they're not intended for brain-dead people (it takes some time to make them work with tn). And I think these files will be useful only for people with language other than English :) Seeya!, Wejn -- Name : Michal Safranek Descr: svamberk.net's Linux section, fi.muni.cz student, linuxfan, human being Motto: No one can tell you you're in love, you just know it. (Oracle::Matrix)