slang-users mailing list

[2001 Date Index] [2001 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

help with menus and callbacks


Hi All,

I'm reasonably comfortable with C, and I have created a simple drop down menu system for my very simple program.  I've been trying to look at other apps with menus and figure out how to hook up functions to a keypress(enter key).

Can someone suggest a site, doc or example of taking a keycapture in the main loop and having that execute a C function from another module?

I'm thinking something of a table lookup of a function and execute it.

Willing to learn, just need a few hints.

Thanks,
-- 
Joe Robertson   -----------------------------
[E]	jmrobert@xxxxxxxx
[W]	http://www.huntsvilleal.com/~jmrobert
[ICQ]	2586528
---------------------------------------------
"I am... after all... a SuperHero."
 Larry-Boy
 http://www.larry-boy.com
---------------------------------------------


[2001 date index] [2001 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]