Selecting Menu using keyboard arrow keys

This is a discussion on Selecting Menu using keyboard arrow keys within the C Programming forums, part of the General Programming Boards category; Greetings, I am just wondering if anyone of you knows the function of using the arrow keys to choose menu. ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    3

    Selecting Menu using keyboard arrow keys

    Greetings,

    I am just wondering if anyone of you knows the function of using the arrow keys to choose menu. I am still young at C programming but I want to learn more.


    Thank you in advance.


    Before I forgot, I am using Borland C. Forgot the version though.

    Yours,
    Dark Messiah

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    134
    Read on Borland graphics library (#include <graphics.h>)

    Good luck.

  3. #3
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    there is no standard function to do this.. You could obtain the key press of the arrow keys and do further processing based on the selection..

  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    3
    Thanks for the information guys. But do you have any idea that you would like to share with me about my problem?

    I think you're right there might be no such function, but at least donate a little idea and I will try to expand this little information please?

    To tell you the truth, this was supposedly our school project last semester but got changed due to many students complained because it is too difficult. But I cannot take it off my head. It challenges my limit but I only have few resources to count on hence I am just a poor kid. Our libraries are not sufficient to feed me the information I hunger. Books cost a fortune.

    Any little data would be a great help to me. Thanks for the reply though.

  5. #5
    Registered User
    Join Date
    Apr 2005
    Posts
    134
    May be this page will help you. It has many example of writing user menus using Arrow keys.

    Thanks,

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    The faq on cprogramming.com also has a page on it. I adapted it to work on Dev-C++. It should work on Borland, all it requires is getch() or getche().

    dwk

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Arrow keys as keyboard Input
    By bradleym83 in forum C++ Programming
    Replies: 3
    Last Post: 12-01-2005, 08:39 PM
  3. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  4. Arrow keys
    By Nutshell in forum C Programming
    Replies: 5
    Last Post: 03-27-2002, 10:49 AM
  5. Menu system (Using the arrow keys)
    By Leeman_s in forum C++ Programming
    Replies: 3
    Last Post: 11-25-2001, 03:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21