> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IFormWindow

> Script the FlexiCapture form window with IFormWindow: find field controls, set the active control, and adjust docking, text size, and scroll position.

## What it does

Represents the form window.

## Methods

| **Definition**                                                                                                                                 | **Description**                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| EnsureRectVisible( imageRect : [IShellRect](/flexi-capture/appendix/scripts-shell/i-shell-rect) )                                              | Moves the scroll box to make the specified rectangle visible                                                                    |
| FindControl( field : [IField](/flexi-capture/appendix/scripts/ifield) ) : [IFieldControl](/flexi-capture/appendix/scripts-shell/ifieldcontrol) | Searches for a field control using the value of the [field region of ControllerInterop](/flexi-capture/appendix/scripts/ifield) |

## Properties

<table width="100%"><thead><tr><th><p><strong>Name</strong></p></th><th><p><strong>Type</strong></p></th><th><p><strong>Access</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>ActiveControl</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ifieldcontrol">IFieldControl</a></p></td><td><p>Read/write</p></td><td><p>The active control on the form. The value of this property cannot be modified from the <a href="/flexi-capture/appendix/scripts-shell/field-activation">On Field Control Activate</a> and <a href="/flexi-capture/appendix/scripts-shell/field-deactivation">On Field Control Deactivate</a> events.</p></td></tr><tr><td><p>ClientRect</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/i-shell-rect">IShellRect</a></p></td><td><p>Read-only</p></td><td><p>The rectangle of the client area (in window coordinates).</p><p>The coordinates of the left upper corner of the main window are (0, 0).</p></td></tr><tr><td><p>Control</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ifieldcontrol">IFieldControl</a></p></td><td><p>Read-only</p></td><td><p>The main control of the form</p></td></tr><tr><td><p>Docking</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/tdockingtype">TDockingType</a></p></td><td><p>Read/write</p></td><td><p>The position of <strong>IFormWindow</strong> relative to <a href="/flexi-capture/appendix/scripts-shell/iimagewindow">IImageWindow</a> in the document editor.</p></td></tr><tr><td><p>DocumentWindow</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/idocumenteditor">IDocumentEditor</a></p></td><td><p>Read-only</p></td><td><p>The document editor</p></td></tr><tr><td><p>Handle</p></td><td><p>int</p></td><td><p>Read-only</p></td><td><p>The handle of the window</p></td></tr><tr><td><p>Ratio</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/irational">IShellRational</a></p></td><td><p>Read/write</p></td><td><p>The ratio of the size of the <strong>IFormWindow</strong> window (numerator) to the combined size of the <strong>IFormWindow</strong> and <a href="/flexi-capture/appendix/scripts-shell/ierrorswindow">IErrorsWindow</a> windows (denominator).</p><p>If the Docking property value is <strong>DT\_Top</strong> or <strong>DT\_Bottom</strong>, the ratio between the y-extents is measured.</p><p>Otherwise, the ratio between the x-extents is measured.</p></td></tr><tr><td><p>ScrollPos</p></td><td><p>int</p></td><td><p>Read/write</p></td><td><p>The position of the scroll box</p></td></tr><tr><td><p>TextSize</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ttextsize">TTextSize</a></p></td><td><p>Read/write</p></td><td><p>The size of the text</p></td></tr><tr><td><p>TotalRect</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/i-shell-rect">IShellRect</a></p></td><td><p>Read-only</p></td><td><p>The rectangle of the whole form.</p><p>If the size of the client area is smaller than the size of the form, the form window will have scrollbars</p></td></tr></tbody></table>
