Skip to content

Main_Window - cDesktop

The object id of the panel object

Type: Property
Access: Read/Write
Data Type: Handle
Parameters: None

Syntax

Property Handle Main_Window
Access Type Syntax
Read Access: Get Main_Window to HandleVariable
Write Access: Set Main_Window to HandleVariable/Value

Description

Main_Window returns the object id of the panel object. It is set in Activate of the Panel object.

While it can be set by your application, it is not expected or normal to do so, and may alter the results of how applications work. When set and the object has a Window_Handle, it will be pushed to the foreground.

The value will be used for the Locate_Mode property when set to Center_On_Panel.

The label of the object will be used for DoAbout when not passed as argument via the sTitle parameter.

The value will be used in printing (WinPrint, DataFlex Reports, print dialog).