⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formcont.htm

📁 formContainer for delphi,是一个delphi form动画现实的组件
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>TFormContainer</title>
</head>

<body bgcolor="#FFFFFF">

<h3>TFormContainer</h3>

<p><font face="Arial">Unit</font> 

<dl>
  <dd><font size="2">FormCont</font></dd>
</dl>

<p><font face="Arial">Declaration</font> 

<dl>
  <dd><font size="2">TFormContainer = class(TCustomControl)</font></dd>
</dl>

<p><font face="Arial">Description</font> 

<dl>
  <dd><font size="2">TFormContainer is a component that allows to insert one form as a child
    window at run-time. At design time you only will see a panel-like control, but only
    calling two methods you can insert a form as if it was just another control of Delphi. You
    can insert another control in it both at run-time and at design-time, just as you do with
    an ordinary panel.</font></dd>
</dl>

<p><font size="2"><a href="#FormContainer's properties">Properties</a> <a
href="#FormContainers's methods">Methods</a> <a href="#FormContainers's events">Events</a></font></p>

<p><a name="FormContainer's properties"><font face="Arial">Properties</font></a></p>

<p><a name="BackgroundOptions"><font size="2"><b>BackgroundOptions</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> property BackgroundOptions: TFCBackgroundOptions read
    FBackgroundOptions;</font></dd>
  <dd><font size="2"><b>Description:</b> Configuration of the background.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="backgopt.htm">TFCBackgroundOptions</a> <a
    href="#Picture">Picture</a></font></dd>
</dl>

<p><a name="BorderStyle"><font size="2"><b>BorderStyle</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> property BorderStyle: TBorderStyle read FBorderStyle
    write SetBorderStyle default bsNone;</font></dd>
  <dd><font size="2"><b>Description:</b> Specifies whether the FormContainer has a border.</font></dd>
</dl>

<p><a name="FlickerFree"><font size="2"><b>FlickerFree</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> property FlickerFree: Boolean read FFlickerFree write
    FFlickerFree default True;</font></dd>
  <dd><font size="2"><b>Description:</b> When calling <a href="#ShowForm">ShowForm</a> (or <a
    href="#ShowFormEx">ShowFormEx</a> with <i>Transition</i> set to <i>nil</i>) if <i>FlickerFree</i>
    is <i>False</i>, then the FormContainer will be refreshed and, depending on its graphical
    complexity, you could see some flickering. But if <i>FlickerFree</i> is <i>True</i>, then
    it will automatically use a <a href="flicker.htm">FlickerFree</a> transition, avoiding
    this effect.</font></dd>
  <dd><font size="2">Note: if the form is not correctly drawed (wrong or missing components),
    set <i>FlickerFree</i> to <i>False</i>.</font></dd>
  <dd><font size="2"><b>See also:</b><strong> </strong><a href="flicker.htm">TFlickerFreeTransition</a>
    <a href="#ShowForm">ShowForm</a> <a href="#ShowFormEx">ShowFormEx</a></font></dd>
</dl>

<p><a name="Form"><font size="2"><b>Form</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration: </b>property Form: TCustomForm read FForm;</font></dd>
  <dd><font size="2"><b>Description:</b> This is a runtime and read-only property. It is the
    currently visible form attached to the FormContainer. If it is <i>nil</i>, then there is
    no visible form.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#Forms">Forms</a> <a href="#CreateForm">CreateForm</a>
    <a href="#ShowForm">ShowForm</a> <a href="#ShowFormEx">ShowFormEx</a></font></dd>
</dl>

<p><a name="Forms"><font size="2"><b>Forms</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> property Forms[Index: Integer]: TCustomForm read
    GetForm; default;</font></dd>
  <dd><font size="2"><b>Description:</b> Runtime and read-only property. It&#146;s the array
    of currently attached forms, from 1 to <a href="#FormCount">FormCount</a>. Remember that
    only one can be visible at a time, or maybe no one.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#Form">Form</a> <a href="#CreateForm">CreateForm</a>
    <a href="#ShowForm">ShowForm</a> <a href="#ShowFormEx">ShowFormEx</a></font></dd>
</dl>

<p><font size="2"><b>FormsData</b></font> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property FormsData[Index: Integer]:
    TFCFormData read GetFormData;</small></dd>
  <dd><font size="2"><b>Description:</b> Runtime and read-only property. It&#146;s the array
    of currently attached forms data, from 1 to <a href="#FormCount">FormCount</a>.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="formdata.htm">TFCFormData</a></font></dd>
</dl>

<p><a name="LRUFormCapacity"><font size="2"><b>LRUFormCapacity</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property LRUFormCapacity: Integer read
    FLRUFormCapacity write SetLRUFormCapacity default 20;</small></dd>
  <dd><font size="2"><b>Description:</b> The maximum number of elements allowed for the LRU
    list of forms. When the list is full the first element will be deleted to allow a new
    addition.</font></dd>
</dl>

<p><font size="2"><b>LRUFormIndex</b></font> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property LRUFormIndex: Integer read
    FLRUFormIndex;</small></dd>
  <dd><font size="2"><b>Description:</b> The index of the current visible form if it has been
    showed as a result of a ShowLRUForm, ShowLRUFormEx, </font><small>ShowNextLRUForm,
    ShowNextLRUFormEx, ShowPriorLRUForm or ShowPriorLRUFormEx call.</small></dd>
</dl>

<p><a name="LRUForms"><font size="2"><b>LRUForms</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property LRUForms[Index: Integer]:
    TCustomForm read GetLRUForm;</small></dd>
  <dd><font size="2"><b>Description:</b> Runtime and read-only property. It&#146;s the array
    of Last Recently Used forms, from 1 to <a href="#LRUFormCount">LRUFormCount</a>.</font></dd>
</dl>

<p><font size="2"><b>LRUFormsData</b></font> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property LRUFormsData[Index: Integer]:
    TFCFormData read GetLRUFormData;</small></dd>
  <dd><font size="2"><b>Description:</b> Runtime and read-only property. It&#146;s the array
    of Last Recently Used forms data, from 1 to <a href="#FormCount">FormCount</a>.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="formdata.htm">TFCFormData</a></font></dd>
</dl>

<p><a name="Picture"><font size="2"><b>Picture</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> property Picture: TPicture read FPicture write
    SetPicture;</font></dd>
  <dd><font size="2"><b>Description:</b> It really points to <a href="backgopt.htm#Picture">TFCBackgroundOptions.Picture</a>,
    but it is maintained here for backwards compatibility.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#ShowFormEx">ShowFormEx</a> <a
    href="backgopt.htm#Picture">TFCBackgroundOptions.Picture</a> <a href="#BackgroundOptions">BackgroundOptions</a></font></dd>
</dl>

<p><a name="SaveLRUDestroyedForms"><font size="2"><b>SaveLRUDestroyedForms</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration:</b> </font><small>property SaveLRUDestroyedForms: Boolean
    read FSaveLRUDestroyedForms write FSaveLRUDestroyedForms default False;</small></dd>
  <dd><font size="2"><b>Description:</b> Set it to <em>True</em> if you want destroyed forms
    to be included into the LRU list of forms.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#LRUForms">LRUForms</a></font></dd>
</dl>

<p><a name="FormContainers's methods"><font face="Arial">Methods</font></a></p>

<p><a name="CloseQuery"><font size="2"><b>CloseQuery</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration: </b>function CloseQuery: Boolean;</font></dd>
  <dd><font size="2"><b>Description:</b> This method just calls the <i>CloseQuery </i>event of
    the currently visible <a href="#Form">Form</a>. It returns <i>True</i> if there is no
    current visible form or if the current visible form can close. You can use it in the <i>CloseQuery</i>
    event of the Parent form of the FormContainer. This way you can nest <i>CloseQuery</i>
    calls and the Parent form only would close if all the child forms visible on it allow it.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#CloseQueryAll">CloseQueryAll</a> <a
    href="#Form">Form</a></font></dd>
</dl>

<p><a name="CloseQueryAll"><font size="2"><b>CloseQueryAll</b></font></a> 

<dl>
  <dd><font size="2"><b>Declaration: </b>function CloseQueryAll: Boolean;</font></dd>
  <dd><font size="2"><b>Description:</b> This method calls the <i>CloseQuery</i> event for
    each form attached. It returns <i>True</i> if there is no form attached or if all the
    attached forms can close. You can use it in the <i>CloseQuery</i> event of the Parent form
    of the FormContainer. This way you can nest <i>CloseQuery</i> calls and the parent form
    only would close if all the child forms attached to it allow it.</font></dd>
  <dd><font size="2"><b>See also:</b> <a href="#CloseQuery">CloseQuery</a> <a href="#Forms">Forms</a></font></dd>
</dl>

<p><a name="CreateForm"><font size="2"><b>CreateForm</b></font></a> 

<dl>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -