FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper sub menus
Posts: 43
Joined: Wed Jun 20, 2012 04:07 AM
sub menus
Posted: Sat Aug 11, 2012 01:04 PM

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

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: sub menus
Posted: Sat Aug 11, 2012 01:23 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: sub menus
Posted: Sat Aug 11, 2012 02:04 PM
Bruce,

You can use as many submenus as needed:

Code (fw): Select all Collapse
   MENU oMenu
      MENUITEM "Files"
      MENU
         MENUITEM "Another"
         MENU
            MENUITEM "And more"
         ENDMENU
      ENDMENU
   ENDMENU
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 43
Joined: Wed Jun 20, 2012 04:07 AM
Re: sub menus
Posted: Sun Aug 12, 2012 01:48 PM

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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: sub menus
Posted: Sun Jan 06, 2013 01:25 AM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion