📄 tdataset_controlsdisabled.htm
字号:
<html>
<head>
<title></title>
</head>
<!--#include virtual="/inc/header.php"-->
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td align="left">
<span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>TDataSet.ControlsDisabled
<br>
</b><span style="font-family:Helv; font-size:9pt; color:#000000"><span style="font-family:Helv; font-size:9pt; color:#7F0000"><a href=tdataset.htm>TDataSet</a></span></span><span style="font-family:Helvetica,Arial; font-size:12pt; color:#000000"><b>
<br>
</b></span></span>
</td>
<td align="right">
<font face="Arial" size="2">
<a href="overview.htm">Top</a>
</font>
</td>
</tr>
</table>
<br><br>
<span style="font-family:Helvetica,Arial; font-size:10pt; color:#000000">Indicates whether data-aware controls do not update their display to reflect changes to the dataset.
<br>
<br>
<b>function </b>ControlsDisabled: <b>Boolean</b>;
<br>
<br>
<b>Description</b>
<br>
Call ControlsDisabled to determine if the updating of data display in data-aware controls is currently disabled. If ControlsDisabled is True, controls are currently disabled. ControlsDisabled is True as long as the reference count that keeps track of disabling for the dataset is greater than zero. This count is incremented every time the DisableControls procedure is called and decremented when EnableControls is called. Applications should call DisableControls to improve performance and prevent constant updates during automated iterations through records in the dataset.
<br>
<br>
In complex applications, when controls may be disabled multiple times by different processes, you can use ControlsDisabled as a check in a procedure to reenable controls should each call to DisableControls not be paired with a subsequent call to EnableControls. For example,
<br>
<br>
<b>procedure</b> ReEnableControls (DataSet: TDataSet);
<br>
<br>
<b>begin</b>
<br>
<b>while </b>DataSet.ControlsDisabled <b>do</b>
<br>
DataSet.EnableControls;
<br>
<b>end;</b>
<br>
</span>
<!--#include virtual="/inc/footer.php"-->
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -