GetFocusedViewport
 
 
 

GetFocusedViewport

Introduced

v5.0

Description

Returns the view pane ("A", "B", "C" or "D") in the view manager which has the focus (view clicked in which is indicated by a light gray border).

Scripting Syntax

oReturn = GetFocusedViewport();

Return Value

The view pane ("A", "B", "C" or "D") as a string.

Examples

1. VBScript Example

' Get the view pane with the focus
LogMessage "The view pane with the focus is " & GetFocusedViewport

2. VBScript Example

' Get the type of view embedded in the focused viewport
set oVM = Application.Desktop.ActiveLayout.Views.Find("View Manager")
set oView = oVM.Views(GetFocusedViewport)
LogMessage oView.FullName & ", " & oView.Type

See Also

SetFocusedViewport GetViewportUnderMouse