v5.0
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).
oReturn = GetFocusedViewport(); |
The view pane ("A", "B", "C" or "D") as a string.
' Get the view pane with the focus LogMessage "The view pane with the focus is " & GetFocusedViewport |
' 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 |