[Top][All Lists]

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

choosing options with numbers

From: Leon Zilber
Subject: choosing options with numbers
Date: Mon, 25 Mar 2002 08:22:19 -0800 (PST)


I am using CDK and currently have GUI which consisted
of several items. User can select an item by using
up/down keys to select an item and then press OK

I'd like add capability so that user can also user
numbers to select needed iterm. By pressing 1, Item #1
is selected, by pressing #2, iterm #2 is selected.
I have modified scroll.c to support such operation by
adding the following:
case '2':case '3':case '4':case '5':case '6':case
'7':case '8': case '9' :
scroll->currentItem = (input - 49);
scroll->currentHigh = (input - 49);

For some reasons it doesn't work.

Does anyone have any ideas?

Thank you.

Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy AwardsВ®

reply via email to

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