Vcl.Dialogs.TOpenDialog.GetStaticRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetStaticRect: TRect; virtual;

C++

virtual System::Types::TRect __fastcall GetStaticRect();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TOpenDialog

Description

Returns the coordinates of the reserved area of the dialog box.

GetStaticRect is provided for components that descend from TOpenDialog and require the placement of new controls alongside the standard ones inherited from the parent class. For Explorer-style dialogs, GetStaticRect returns the size and location of the standard controls within the dialog. For older versions of Windows, or if ofOldStyleDialog is enabled in Options, GetStaticRect returns the client dimensions of the entire dialog box.

See Also

Code Examples