WindowState Property [Application]

WindowState returns or sets the state of the main application window (i.e. minimized). Returns a SrfWindowState.

Syntax

object.WindowState

object.WindowState = State

Parameter

Type

Description

State

SrfWindowState

required

Example 1

This example demonstrates how to return the window state of the Surfer application.

Debug.Print SurferApp.WindowState

Example 2

This example demonstrates how to maximize the Surfer application window.

SurferApp.WindowState = srfWindowStateMaximized

Example 3

This script displays all the properties in the Application object.

Used by: Application object