Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.UserInterface Library / Frame Object / WindowMode Property
Example
In This Topic
    WindowMode Property
    In This Topic
    Gets the WindowMode.
    Syntax
    expression.WindowMode As WindowModes
    where expression is a variable that represents a Frame Object

    Property Value

    A WindowModes value.
    Example
    This sample determines whether the interface mode of the workspace supports multiple documents and displays the number of views open in the workspace.
    Sub Sample_Frame_WindowMode()
        'If in Browser or Ribbon mode, multiple documents are supported
        If ThisFrame.WindowMode = WindowModes_Browser Or _
           ThisFrame.WindowMode = WindowModes_Ribbon Then
     
            MsgBox ("There are " & Str(ThisFrame.ViewCount) & " views open within this frame instance.")
     
        Else  'WindowModes_Classic
            MsgBox ("Since this frame is in ""classic"" mode, there cannot be more " & _
                   "than one session view open in it.")
        End If
    End Sub
    See Also