📄 transeff.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>TTransitionEffect</title>
</head>
<body bgcolor="#FFFFFF">
<h3>TTransitionEffect</h3>
<p><font face="Arial">Unit</font>
<dl>
<dd><font size="2">TransEff</font></dd>
</dl>
<p><font face="Arial">Declaration</font>
<dl>
<dd><font size="2">TTransitionEffect = class(TObject) </font></dd>
</dl>
<p><font face="Arial">Description</font>
<dl>
<dd><font size="2">This is the base class for all the transitions. A transition is a
graphical effect that runs from an initial state (a bitmap) to a final state (another
bitmap). You’ll never have to instantiate <i>TTransitionEffect</i>, because by itself
it is inoperative.</font></dd>
</dl>
<p><font size="2"><a href="#Properties">Properties</a> <a href="#Methods">Methods</a> <a
href="#Events">Events</a></font></p>
<p><a name="Properties"><font face="Arial">Properties</font></a></p>
<p><a name="ClientCoordinates"><font size="2"><b>ClientCoordinates</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> ClientCoordinates: Boolean;</font></dd>
<dd><font size="2"><b>Description:</b> If <em>True</em> (the default) the rectangle
coordinates passed to <a href="#Freeze">Freeze</a> and <a href="#Prepare">Prepare</a> are
relative to the client area of the given control of reference. If <em>False</em> the
coordinates are relative to the control instead. If the control of reference doesn't have
any non-client area then they are equivalent.</font></dd>
<dd><font size="2"><b>See also:</b><strong> </strong><a href="#Freeze">Freeze</a> <a
href="#Prepare">Prepare</a></font></dd>
</dl>
<p><a name="Enabled"><font size="2"><b>Enabled</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> property Enabled: Boolean read FEnabled write
SetEnabled default True;</font></dd>
<dd><font size="2"><b>Description:</b> If <em>False</em> the transition will not be
executed. The behavior depends on the <a href="#FlickerFreeWhenDisabled">FlickerFreeWhenDisabled</a>
value.</font></dd>
<dd><font size="2"><b>See also:</b><strong> </strong><a href="#FlickerFreeWhenDisabled">FlickerFreeWhenDisabled</a>
<a href="globdisa.htm">TEGlobalDisabled</a></font></dd>
</dl>
<p><font size="2"><b>Executing</b></font>
<dl>
<dd><font size="2"><b>Declaration:</b> property Executing: Boolean read FExecuting;</font></dd>
<dd><font size="2"><b>Description:</b> Returns <em>True</em> when the transition is
executing at that moment.</font></dd>
</dl>
<p><a name="FlickerFreeWhenDisabled"><font size="2"><b>FlickerFreeWhenDisabled</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> property FlickerFreeWhenDisabled: Boolean read
FFlickerFreeWhenDisabled write FFlickerFreeWhenDisabled default False;</font></dd>
<dd><font size="2"><b>Description:</b> It only takes effect when the transition is disabled.
If <em>False</em> the transition will be ignored, and if <em>True</em> the transition will
perform as a FlickerFree transition. A transition can be disabled using its <a
href="#Enabled">Enabled</a> property or the <a href="globdisa.htm">TEGlobalDisabled</a>
global variable.</font></dd>
<dd><font size="2"><b>See also:</b><strong> </strong><a href="#Enabled">Enabled</a> <a
href="globdisa.htm">TEGlobalDisabled</a></font></dd>
</dl>
<p><a name="ForceRendering"><font size="2"><b>ForceRendering</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> ForceRendering: Boolean;</font></dd>
<dd><font size="2"><b>Description:</b> Whenever possible, the source image is captured from
the screen, rather than rendered, unless you set <i>ForceRendering</i> to <i>True</i>, in
which case it is always rendered. By default it is <i>False</i>, and normally you will
only use it in very exceptional cases, where capturing the screen doesn’t work.</font></dd>
</dl>
<p><a name="Milliseconds"><font size="2"><b>Milliseconds</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> property Milliseconds: Cardinal read FMilliseconds
write FMilliseconds;</font></dd>
<dd><font size="2"><b>Description:</b> It’s the approximate number of milliseconds that
the <a href="#Execute"><i>Execute</i></a> method of the transition is expected to last. If
it is 0, then the transition will not have time constraints. Each transition has the
possibility of not to have in consideration this property. For example, the <a
href="flicker.htm">FlickerFreeTransition</a> is always inmediate, so the value of this
property it is irrelevant to it. The transitions derived from <a href="ttimedte.htm">TTimedTransitionEffect</a>
will last this time, but TTransitionEffect doesn't handle this itself. If the interval is
too short, then they will omit steps.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#Execute">Execute</a> <a href="flicker.htm">TFlickerFreeTransition</a>
<a href="ttimedte.htm">TTimedTransitionEffect</a></font></dd>
</dl>
<p><a name="Pass2Options"><font size="2"><b>Pass2Options</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> Pass2Options: <a href="pass2.htm">TTEPass2OptionsType</a>;</font></dd>
<dd><font size="2"><b>Description:</b> If <a href="#Passes"><i>Passes</i></a> is 2 then this
property provides the options to use.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#PassSetting">PassSetting</a> <a href="#Passes">Passes</a>
<a href="pass2.htm">TTEPass2OptionsType</a></font></dd>
</dl>
<p><a name="PassSetting"><font size="2"><b>PassSetting</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> PassSetting: <a href="passet.htm">TTEPassSettingType</a>;</font></dd>
<dd><font size="2"><b>Description:</b> This is the number of <a href="#Passes">passes</a>
that you want to execute.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#Passes">Passes</a> <a href="passet.htm">TTEPassSettingType</a>
<a href="#Pass2Options">Pass2Options</a></font></dd>
</dl>
<p><a name="Prepared"><font size="2"><b>Prepared</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> property Prepared: Boolean read FPrepared;</font></dd>
<dd><font size="2"><b>Description:</b> It indicates if the transition has been correctly
prepared. It is a read-only property.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#Prepare">Prepare</a> <a href="#UnPrepare">UnPrepare</a></font></dd>
</dl>
<p><a name="Reversed"><font size="2"><b>Reversed</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> property Reversed: Boolean read FReversed write
FReversed;</font></dd>
<dd><font size="2"><b>Description:</b> It sets if the transition effect will be reversed in
regular circumstances. To know the effective value for the current circumstances use <a
href="#ReversedToUse">ReversedToUse</a>.</font></dd>
<dd><font size="2"><strong>See also:</strong> <a href="#ReversedToUse">ReversedToUse</a></font></dd>
</dl>
<p><a name="UnUpdateRect"><font size="2"><b>UnUpdateRect</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> UnUpdateRect: TRect;</font></dd>
<dd><font size="2"><b>Description:</b> In transitions that use an offscreen bitmap the
blitting to the screen can be optimized by setting this variable to the area that doesn't
need to be painted because it hasn't changed.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#UpdateRect">UpdateRect</a> <a
href="#UpdateScreen">UpdateScreen</a> <a href="#UseOffScreenBmp">UseOffScreenBmp</a></font></dd>
</dl>
<p><a name="UpdateRect"><font size="2"><b>UpdateRect</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> UpdateRect: TRect;</font></dd>
<dd><font size="2"><b>Description:</b> This protected variable has to be correctly set to
the currently modified area of the offscreen bitmap (if an offscreen bitmap is used).</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#UnUpdateRect">UnUpdateRect</a> <a
href="#UpdateScreen">UpdateScreen</a> <a href="#UseOffScreenBmp">UseOffScreenBmp</a></font></dd>
</dl>
<p><a name="Methods"><font face="Arial">Methods</font></a></p>
<p><font size="2"><b>Clipped</b></font>
<dl>
<dd><font size="2"><b>Declaration:</b> function Clipped: Boolean;</font></dd>
<dd><font size="2"><b>Description:</b> Returns <i>True</i> if the area affected by the
transition is somehow clipped. </font></dd>
</dl>
<p><a name="Defrost"><font size="2"><b>Defrost</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> procedure Defrost;</font></dd>
<dd><font size="2"><b>Description:</b> If an area has been ‘frozen’ with a call to
<a href="#Freeze"><i>Freeze</i></a>, you can ‘defrost’ it calling this method. <a
href="#UnPrepare"><i>UnPrepare</i></a> calls it, so you will rarely need to call it
directly.</font></dd>
<dd><font size="2"><b>See also:</b> <a href="#Freeze">Freeze</a>, <a href="#UnPrepare">UnPrepare</a></font></dd>
</dl>
<p><a name="DoExecute"><font size="2"><b>DoExecute</b></font></a>
<dl>
<dd><font size="2"><b>Declaration:</b> procedure DoExecute(Data: <a href="tedata.htm">TTETransitionData</a>);
virtual; abstract;</font></dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -