[comp.os.os2.programmer] Double Menu Application

huangj@mist.cs.orst.edu (Jen Che Huang) (10/27/90)

Has anybody created a PM program with two levels of menu?  What I'm
trying to do is to create a menu system where there is a menu bar and
below the menu bar is another menu bar where the user can select
a disk drive.

A good example of what I am trying to do is the program FDISKPM.EXE. 
Where the program allows the user to select between the hard disk.

If you have any sample codes or suggestion, please let me know so I can
upgrade my current program.

Thank you,
Jim Huang
Senior Computer Science @ Oregon State University

lsalomo@hubcap.clemson.edu (lsalomo) (10/29/90)

From article <21355@orstcs.CS.ORST.EDU>, by huangj@mist.cs.orst.edu (Jen Che Huang):
> 
> Has anybody created a PM program with two levels of menu?  What I'm
> trying to do is to create a menu system where there is a menu bar and
> below the menu bar is another menu bar where the user can select
> a disk drive.

Why don't you have a submenu with the title "Drive" and the submenu items
be the drive names themselves?  This way, (at least) the menus would be more
CUA-ish, and thus easier to use.  Use DosQCurDrive (I think) to get the
current drive being used and a bitmap of all of the valid drives on the
system.  This way, you can immediately place a checkmark next to the drive
that the system was started from.

Cheers,
Q - the "Q"uestor for knowledge (, a degree, etc.)

lsalomo@hubcap.clemson.edu
ibmman@prism.clemson.edu
ibmman@clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================