v5.0
viewing
Returns the view pane ("A", "B", "C" or "D") under the mouse (or last view pane if mouse is not currently over the view manager).
oReturn = GetViewportUnderMouse(); |
The view pane ("A", "B", "C" or "D") as a string.
' Get the viewport under the mouse Application.LogMessage "The view pane with the focus is " & GetViewportUnderMouse ' Logged message will be similar to this: 'INFO : The view pane with the focus is B |
// Get the type of view embedded in the viewport under the mouse var oVM = Application.Desktop.ActiveLayout.Views.Find( "View Manager" ); var oView = oVM.Views( GetViewportUnderMouse() ); Application.LogMessage( oView.FullName + ", " + oView.Type ); // Logged message will be similar to this: //INFO : B, Explorer |