Skip to main content

IShellUI

The IShellUI is available for the Modules on the module startup event

The IShellUI is available for the Dashboards from the ShellFrame property of the IDashboard.

Properties

NameTypeDescription
EventsIShellUIEventsReturns the event registering interface of the IShellUI interface.
VaultIVaultReturns the logged-in M-Files server connection.

Methods

NameDescription
BroadcastMessageSends a synchronous broadcast message to all shellUI modules of all applications running in the current shellUI (main-window).
GetFileTypeIconURLReturns the file type icon from the filename extension as data url.
GetObjectTypeIconURLGets the URL of the icon for the specified object type.
NotifyApplicationSends a synchronous notification message to all shellUI modules of a specific application running in the current shellUI (main-window).
ShowMessageShows the default M-Files message box with the specified content and appearance.
ShowPopupDashboardShows a dashboard in a separate window.

Events

EventDescriptionArguments
StartedSent when the object turns to started state.
StopRegister event to listen for the stop event.
NewShellFrameRegister event handler for the NewShellFrame event. This event is triggered when any shell frame object is created,
including normal shell frames, common dialogs, and embedded or special shell frames.
shellFrame
NewNormalShellFrameRegister event handler for the NewNormalShellFrame event. This event is triggered when a normal shell frame object is created.
Note that this event is not triggered for common dialogs, or embedded or special shell frames.
shellFrame The new shell frame object.
CrossApplicationNotificationBroadcasted message to multiple applications.appGUID GUID of the target application, or null if broadcasted to all applications
msgId ID of the message which is sent to the other applications.
data Custom data to be sent.