User Tools

Site Tools


nomerge_set_merging_behavior_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== NOMERGE (set merging behavior) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

NOMERGE

blk2blue.jpg

The NOMERGE attribute (PROP:NOMERGE) indicates that the MENUBAR or TOOLBAR on a WINDOW should not merge with the Global menu or toolbar.

The NOMERGE attribute on an APPLICATION's MENUBAR indicates that the menu is local and to be displayed only when no MDI “child” windows are open and that there is no Global menu. The NOMERGE attribute on an APPLICATION's TOOLBAR indicates that the tools are local and display only when no MDI “child” windows are open–there are no Global tools.

Without the NOMERGE attribute, an MDI WINDOW's menu and toolbar are automatically merged with the global menu and toolbar, and then displayed in the APPLICATION menu and toolbar. When NOMERGE is specified, the WINDOW's menu and toolbar overwrite the Global menu and toolbar. The menu and toolbar displayed when the WINDOW has focus are only the WINDOW's own menu and toolbar. However, they are still displayed on the APPLICATION.

A MENUBAR or TOOLBAR specified in a non-MDI WINDOW is never merged with the Global menu or toolbar–they appear in the WINDOW.

Example:

!An MDI application frame window with local-only menu and toolbar:

MainWin APPLICATION('My Application'),SYSTEM,MAX,ICON('MyIcon.ICO'),STATUS

        MENUBAR,NOMERGE

         ITEM('E&xit'),USE(?MainExit)

        END

        TOOLBAR,NOMERGE

         BUTTON('Exit'),USE(?MainExitButton)

        END

       END

!MDI window with its own menu and toolbar, overwriting the application's:

MDIChild WINDOW('Dialog Window'),MDI,SYSTEM,MAX,STATUS

         MENUBAR,NOMERGE

          MENU('Edit'),USE(?EditMenu)

           ITEM('Cu&t'),USE(?CutText),KEY(CtrlX),STD(STD:Cut)

           ITEM('Copy'),USE(?CopyText),KEY(CtrlC),STD(STD:Copy)

           ITEM('Paste'),USE(?PasteText),KEY(CtrlV),STD(STD:Paste)

          END

         END

         TOOLBAR,NOMERGE

          BUTTON('Cut'),USE(?CutButton),STD(STD:Cut)

          BUTTON('Copy'),USE(?CopyButton),STD(STD:Copy)

          BUTTON('Paste'),USE(?PasteButton),STD(STD:Paste)

         END

         TEXT,HVSCROLL,USE(Pre:Field),MSG('Enter some text here')

         BUTTON('&OK'),USE(?Exit),DEFAULT

        END

See Also:

MENUBAR

TOOLBAR

nomerge_set_merging_behavior_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)