GetActiveDocumentID Event
Description
Occurs when a MDI document becomes active, or all documents are closed. It is used to decide which MDI menus to display based on the type of document that is active.
Syntax
Public Event GetActiveDocumentID( _
ByRef [Id](#) As Long _
)
Parameters
- Id
Id of the MenuBarMDIMenu to display for the given active document. This must be a validMenuBarMDIMenu.Id.
Remarks
GetActiveDocumentID occurs when a MDI document becomes active, or all documents are closed. It is used to specify which MDI menu needs to be shown. For example, you can have many different types of documents—like image editor, text editor, etc. You can assign an Id for each document template and retrieve this Id in the GetActiveDocumentID event. This way, you can display a different set of MDI menus for each type of document.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.