View Full Version : Keyboard-Based Menus

02-28-2004, 07:36 AM
Hi everyone.

I'm trying to create a CD menu that looks like DOS and is keyboard-driven. It will only emulate the appearance of DOS screens and not actually work in DOS.

What I want to do, specifically, is create menu screens that look and work similarly to the FDISK screens, or the initial screen you see when you insert a bootable Windows 98 or ME floppy.

I want the user to navigate through the menu pages with keystrokes, as well as launch files on the CD via keystrokes.

I'm not 100% sure if this can be done with version 5.0. From reading the documentation, I can create an input object and use the On Key action to perform functions.

There are two problems with this:
1. I haven't figured out how to set a specific key. For example, if I want someone to press 2 to jump to Page Two, I don't know how.

2. I would prefer to use text boxes rather than input boxes.

What is the absolute easiest way to create a keyboard-driven menu as I've described it? Imagine yourself trying to recreate the FDISK screens...that's what I'm doing.

Also, is this possible to do with version 4, rather than version 5?

Thank you! Jack Danniel

02-28-2004, 08:19 AM
There are some actions to navigate available:

See Online help:
Search for "On Key"
and section "How do I..." -> Respond to Key Pressed


02-28-2004, 08:26 AM

I don't think you read my entire post. :)

I did read that documentation but I don't fully grasp it. I don't see an example of how to choose a keystroke, for example.

02-28-2004, 12:39 PM
Sorry, I didn't recognized it.

Take a look at the demo.
There are three pages. with key "1", "2" or "3" the selected page will be shown.
Open "Page Properties" / "Actions" / "On Key" and you will see how it works.

Page1/Actions/On Key
if (e_Key == 50) then
elseif (e_Key == 51) then

other useful actions are "Page.GetFocus()" and "Page.SetFocus (ObjectName)"


10-11-2005, 07:52 PM
Is it possible to have an entire application respond to keystrokes.?

Can those keystrokes also trigger a random page jump action?

How is this done if possible?

Thank You

10-11-2005, 08:14 PM
would like my entire application to respond to keystrokes and/or mouse clicks.

would like the keystroke and corresponding mouse click to activate a random page jump action.

how can i accomplish this?


10-12-2005, 01:00 AM
return to DOS :eek:

10-12-2005, 01:42 AM
Great example. :yes