Page 1 of 1

sub menus

Posted: Sat Aug 11, 2012 1:04 pm
by brewster
As I move my Clipper submenuing (cascading) menus in to a more "Windows" style, I'm confused on the direction to take.
Currently in Clipper I have a main menu function() of 2 selections that selects a sub menu function() of 3 selections, that further selects a sub sub menu function() of 4 selections and so on.

I gather this is the "old" way of doing it, but it seems that using menu, menuitem will only allow 1 level down.

Or, is this cascading menu supposed to be accomplished thru some MDI child setup.

I do not find anything in \samples folder that goes down more than one level, although the FiveDbu.prg example has a recent files option that touches on it.

How is accomplished in FW?

Bruce

Re: sub menus

Posted: Sat Aug 11, 2012 1:23 pm
by Rick Lipkin
Bruce

I prefer Buttonbars or Toolbars with a combination of MDI menus .. have a look at these samples

Buttonbars:

Test2007.prg
Customer.prg

Toolbars:

Toolbar1.prg
Toolbar2.prg

Rick Lipkin

Re: sub menus

Posted: Sat Aug 11, 2012 2:04 pm
by Antonio Linares
Bruce,

You can use as many submenus as needed:

Code: Select all

   MENU oMenu
      MENUITEM "Files"
      MENU
         MENUITEM "Another"
         MENU
            MENUITEM "And more"
         ENDMENU
      ENDMENU
   ENDMENU
 

Re: sub menus

Posted: Sun Aug 12, 2012 1:48 pm
by brewster
Antonio,
I will check my arrangement of the menuitem layout for errors, now confirming it is possible.


Rick,
Appreciate your suggestions and direction to some relative examples.
There sure are some slick solutions available.

Its all new.

Bruce

Re: sub menus

Posted: Sun Jan 06, 2013 1:25 am
by James Bott
Bruce,

Cascading menus are tedious to use. You may note that most windows apps limit pull-down menus to two levels deep. Any more can get difficult to handle with a mouse.

You can consider an interface redesign possibly putting the third level in a combo box on a dialog that is called from the second level menu.

I recommend this book for learning about interface design: About Face 2.0, The Essentials of Interaction Design by Alan Cooper. There is a version 3 also but I prefer 2.0. You can get this on Amazon.

Regards,
James