Foundation 6

Fnd_Menu

36 shared methods.

Fnd_Menu_About

Fnd_Menu_About

Called from the menu when the About box command is selected.

Installed by the Fnd_Shell_OnStartup method.

No parameters.

Fnd_Menu_Administration

Fnd_Menu_Administration

Called from the menu.

No parameters.

Fnd_Menu_BuildMenuBar

Fnd_Menu_BuildMenuBar

Testing

ParameterTypeDirectionDescription
$1LongintinDescription
ResultLongintoutDescription

Fnd_Menu_Delete

Fnd_Menu_Delete

Deletes the highlighted records in the output list.

No parameters.

Fnd_Menu_DisableAll

Fnd_Menu_DisableAll

Disables all of the menu items.

No parameters.

Fnd_Menu_DisableAllMenuItems

Fnd_Menu_DisableAllMenuItems (menu reference)

Disables all menu items in the specified menu.

A temporary work-around for a 4D v11 SQL 1.0 bug, which doesn't disable all menu items if 0 is passed as the menu item.

ParameterTypeDirectionDescription
menuStringinA menu reference

Fnd_Menu_EnableAllMenuItems

Fnd_Menu_EnableAllMenuItems (menu reference)

Disables all menu items in the specified menu.

A temporary work-around for a 4D v11 SQL 1.0 bug, which doesn't enable all menu items if 0 is passed as the menu item.

ParameterTypeDirectionDescription
menuStringinA menu reference

Fnd_Menu_EnableDisableItems

Fnd_Menu_EnableDisableItems

Here's where we enable or disable menu items based on the contents and state of the frontmost window.

No parameters.

Fnd_Menu_Find

Fnd_Menu_Find

Called when the user selects Find from the Select menu.

No parameters.

Fnd_Menu_FindRelated

Fnd_Menu_FindRelated

Called when the user selects Find Related from the Select menu.

No parameters.

Fnd_Menu_Info

Fnd_Menu_Info (label) --> Text

Returns requested information. See the Fnd_Gen_ComponentInfo method for more information.

ParameterTypeDirectionDescription
requestTextinInfo desired ("version" or "name")
ResultTextoutResponse

Fnd_Menu_LoadMenuTitles

Fnd_Menu_LoadMenuTitles

Loads the localization for the menu bar.

No parameters.

Fnd_Menu_Localize

Fnd_Menu_Localize

Passed the localization strings to the General and (if available) Localization components.

No parameters.

Fnd_Menu_MenuBar

Fnd_Menu_MenuBar ({"*"})

Updates the menu bar.

ParameterTypeDirectionDescription
inForceTextinPass "*" to force a full update (optional)

Fnd_Menu_MenuBarName

Fnd_Menu_MenuBarName ({menu name{; Window menu number}}) --> Text

Allows the developer to specify the menu bar to display the next time the menu bar is displayed by a Foundation component.

If a blank name is specified, the default Foundation menu bar name is restored.

You can also specify an optional number for the Window menu to use if you want to add a Window menu to a non-Foundation database.

ParameterTypeDirectionDescription
inMenuNameTextinThe menu bar name (optional)
inWindowMenuNumberLongintinThe number of the Window menu (optional)
ResultTextoutThe menu bar name to use next

Fnd_Menu_ModifyRecords

Fnd_Menu_ModifyRecords

Called from the Modify Records item in the Edit menu.

No parameters.

Fnd_Menu_NavPalette

Fnd_Menu_NavPalette

Called from the menu bar.

No parameters.

Fnd_Menu_NewRecord

Fnd_Menu_NewRecord

Creates and displays a new record for the current table.

No parameters.

Fnd_Menu_OmitSubset

Fnd_Menu_OmitSubset

Called from the "Omit Subset" item in the "Select" menu.

No parameters.

Fnd_Menu_OpenTable

Fnd_Menu_OpenTable

Called when the user selects the Open Table command from the File menu.

This is just a temporary placeholder.

No parameters.

Fnd_Menu_Preferences

Fnd_Menu_Preferences

Called from the menu bar.

No parameters.

Fnd_Menu_Print

Fnd_Menu_Print

Called when Print is selected from the File menu.

No parameters.

Fnd_Menu_QueryEditor

Fnd_Menu_QueryEditor

Displays 4D's Query Editor.

No parameters.

Fnd_Menu_Quit

Fnd_Menu_Quit

Called from the menu bar when the user selects Quit from the File menu.

No parameters.

Fnd_Menu_SetMenuItem

Fnd_Menu_SetMenuItem (menu number; item number; label)

A wrapper for the SET MENU ITEM command that parses out the shortcut command and sets it using 4D's SET MENU ITEM KEY command.

Pass the shortcut at the end of the label after the "/" character. Fnd_Menu_SetMenuItem (1;5;"Print.../P")

ParameterTypeDirectionDescription
menuNumberLongintinThe menu number
itemNumberLongintinThe menu item number
inLabelLongintinThe new label, with shortcut if desired

Fnd_Menu_ShowAll

Fnd_Menu_ShowAll

Displays all records for the current table.

No parameters.

Fnd_Menu_ShowSubset

Fnd_Menu_ShowSubset

Called from the "Show Subset" item in the "Select" menu.

No parameters.

Fnd_Menu_Sort

Fnd_Menu_Sort

Sorts the records for the current table.

No parameters.

Fnd_Menu_SortOrderEditor

Fnd_Menu_SortOrderEditor

Displays 4D's Order By editor.

No parameters.

Fnd_Menu_SpecialFunctions

Fnd_Menu_SpecialFunctions

Called from the menu.

No parameters.

Fnd_Menu_UpdateResources

Fnd_Menu_UpdateResources

Updates the 'STR#' resources in the structure file used for localizing menu titles.

No parameters.

Fnd_Menu_ViewOptions

Fnd_Menu_ViewOptions

Supports the View Options function for Fnd_Out. Opens the single, shared View Options palette process (Fnd_Out_ViewOptionsProcess) if it isn't already running, or brings its window to front if it is - never a second palette. The palette serves whichever list window is front, retargeting through Fnd_Out_ViewOptionsFront as focus moves between Foundation windows; this method only needs to get it open or forward.

Runs with Form bound to the Fnd_Out form, since it's reached from Fnd_Out's own menu bar while its window is front - the same context Fnd_Menu_Sort relies on to reach Form.listData directly.

No parameters.

Fnd_Menu_Window_Add

Fnd_Menu_Window_Add ({item text {; prime}})

Adds the current form window to the Window menu, and to Close All Windows. If no title is specified, the current window title is used. Call it after opening the window.

The prime window is the one whose closing lets the process method carry on: the window opened just before a blocking DIALOG (without *), ADD RECORD, MODIFY RECORD, MODIFY SELECTION or DISPLAY SELECTION. Close All closes it last of its process. Left out, a window added from process-method level, before the blocking call, is taken to be prime, and one added from inside a running form is not. Pass False for a window opened with DIALOG(...; *) from process-method level, because the process carries on after it. Pass True to claim prime from inside a form. See Fnd_Wnd_Register.

ParameterTypeDirectionDescription
inItemTextTextinThe item text to add to the menu (optional)
primeBooleaninIs this the process's prime window? (optional)

Fnd_Menu_Window_Remove

Fnd_Menu_Window_Remove ({window or process number})

Takes a window off the Window menu. It stays open, and stays in Close All Windows. With no parameter, the current process's most recently added window is removed. A parameter that is a window reference removes that window; any other number is taken as a process number and removes all of that process's windows.

ParameterTypeDirectionDescription
inNumberLongintinWindow reference or process number (optional)

Fnd_Menu_Window_Update

Fnd_Menu_Window_Update

Rebuilds the Window menu from the Fnd_Wnd window registry: one item for each window listed in it, then Close All Windows.

No parameters.

Fnd_Menu_WindowItem

Fnd_Menu_WindowItem

This method is called whenever any of the items in the Window menu is selected. This method brings the associated window to the front, or closes all of the windows. The item parameter is the window reference, or "closeAll".

No parameters.