Alpha Video Training
Results 1 to 2 of 2

Thread: Tool to Mass Update MenuBar Menu Items

  1. #1
    Real Name
    Paul Verboom
    Join Date
    Apr 2006
    Halifax, Nova Scotia, Canada

    Default Tool to Mass Update MenuBar Menu Items

    A bit of background will help explain the purpose of this tool, so here we go.

    I have an application with at least 50 separate Forms and Browses. Each has a custom MenuBar and ToolBar.
    Quite a few Forms and Browses use a common ToolBar, very few menuBars are shared so I have ended up with around 34 unique menubar definitions.
    While all the Menu Bars have unique Menus, they also have common menus for File, Tools, Window, Help.
    When a new entry is added to one of the common menus (File, Tools, Windows) all, 34 MenuBars would need to be updated. The updates are a time-consuming task; this is where this tool comes into play.

    ZTool-MenuCopy will update the selected Menus on a selected list of MenuBars using a single MenuBar as a pattern. In this way, the Menus for MenuBar Entries such as File and Help can quickly be made the same.

    Establish the File and Help Menus in one MenuBar definition than use this tool to copy these menus to the remaining MenuBar definitions.

    Download the following script and import it into your Alpha5 application (on the Code Tab Right Click and select Import)

    ZTool-MenuCopy - 09-21-2018.txt

    Below is definitions of Menu terms used in Windows it may make the above more understandable

    A menu is arranged in a hierarchy.
    At the top level of the hierarchy is the menu bar; which contains a list of menus, which in turn can contain submenus.
    A menu bar is sometimes called a top-level menu, and the menus and submenus are also known as pop-up menus.

    A menu item can either carry out a command or open a submenu.
    An item that carries out a command is called a command item or a command.

    An item on the menu bar almost always opens a menu.
    Menu bars rarely contain command items.
    A menu opened from the menu bar drops down from the menu bar and is sometimes called a drop-down menu.
    When a drop-down menu is displayed, it is attached to the menu bar.
    A menu item on the menu bar that opens a drop-down menu is also called a menu name.
    Last edited by pboomwork; 09-21-2018 at 11:07 AM.

  2. #2
    Real Name
    Jon P Moody
    Join Date
    Nov 2016

    Default Re: Tool to Mass Update MenuBar Menu Items

    Paul, looks very useful. Did your 'replace all' with 'IR' break anything? haven't got time to test this at present.

Similar Threads

  1. tool bar and menu bar
    By richard2007 in forum Alpha Five Version 8
    Replies: 5
    Last Post: 03-20-2008, 12:55 PM
  2. New Menu Items
    By crimmelcp in forum Alpha Five Version 5
    Replies: 5
    Last Post: 03-15-2004, 02:56 AM
  3. Update of linking field becomes a mass. Why?
    By René Stout in forum Alpha Five Version 5
    Replies: 17
    Last Post: 10-18-2003, 03:00 AM
  4. Menu Items
    By Thomas Henkel in forum Alpha Five Version 5
    Replies: 3
    Last Post: 09-22-2003, 12:32 PM
  5. I want larger tool bar items
    By Wanda Tucker in forum Alpha Five Version 4
    Replies: 8
    Last Post: 08-08-2001, 05:15 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts