This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Customize Client Top Menu

Former Member
Former Member
Hi all,

I am using M-Files 9.0.3372.6 (Client) and would like to remove the top menu items from the Windows Explorer client that are labelled as 'New', 'Operations' and 'Settings'.

The objective is to remove all unnecessary UI options and menus so that user's are provided only with a small subset of options that we would like them to use.

We will be using the UI Extensibility features to modify the Shell Frame UI, but would also like to remove these additional options that appear as part of the Windows Explorer UI.

Is this possible - perhaps with Registry changes ?  And can this also be customized to be removed only for a specific set of users ?

Thank you.

James.
  • Hi James,

    You can hide shell command with UI ext. application. Unfortunately you cannot get rid of those main menu labels, but you can make the menus to be empty.

    For example, you could try something like this in your application:
    function OnNewShellUI(shellUI) {
    /// The entry point of ShellUI module.
    /// The new shell UI object.

    // Register to listen new shell frame creation event.
    shellUI.Events.OnNewShellFrame = newShellFrameHandler;
    }

    function newShellFrameHandler(shellFrame) {
    /// Handles the OnNewShellFrame event.
    /// The new shell frame object.

    // Register to listen the started event.
    shellFrame.Events.OnStarted = getShellFrameStartedHandler(shellFrame);
    }

    function getShellFrameStartedHandler(shellFrame) {
    /// Gets a function to handle the Started event for shell frame.
    /// The current shell frame object.
    /// The event handler.

    // Return the handler function for Started event.
    return function () {

    // Shell frame object is now started.

    // Hide all commands from the main menu.
    shellFrame.Commands.SetCommandState( BuiltinCommand_ALL, CommandLocation_MainMenu, CommandState_Hidden );

    };
    }


    I'm not aware of any other ways to affect in main menu appearances.

    Br,
    - Ari
  • Former Member
    Former Member
    Thanks Ari.

    That achieves the outcome I needed. Much appreciated.

    Regards,
    James