Application.WindowBeforeViewChange Event
Project Developer Reference |
Occurs when the top pane view is changed within a window in Project.
Syntax
expression.WindowBeforeViewChange(Window, prevView, newView, projectHasViewWindow, Info)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Window | Required | Window | The window where the view change occurs. |
prevView | Required | View | The previous view (top pane) the user is in. If the user was not in a project view before applying the current view, this value will return Null. |
newView | Required | View | The new view (top pane) to which the user is trying to change. |
projectHasViewWindow | Required | Boolean | True if the Project View Bar is currently visible. |
Info | Required | EventInfo | EventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the value for the field specified with Field is not changed. |
Return Value
nothing
Remarks
Project events do not occur when the project is embedded in another document or application.
See Also