DisableControls;
------
------
EnableControls;这两个语句是什么意思有什么作用?

解决方案 »

  1.   

    DisableControls断开数据库连接
    EnableControls恢复数据库连接
    有什么问题吗?
      

  2.   

    Delphi syntax:procedure DisableControls;C++ syntax:void __fastcall DisableControls(void);DescriptionCall DisableControls prior to iterating through a large number of records in the dataset to prevent data-aware controls from updating every time the active record changes. Disabling controls prevents flicker and speeds performance because data does not need to be written to the display.If controls are not already disabled, DisableControls records the current state of the dataset, broadcasts the state change to all associated data-aware controls and detail datasets, and increments the dataset抯 disabled count variable. Otherwise, DisableControls just increments the disabled count variable.The disabled count is used internally to determine whether to display data in data-aware controls. When the disable count variable is greater than zero, data is not updated.If the dataset is the master of a master/detail relationship, calling DisableControls also disables the master/detail relationship. Setting BlockReadSize instead of calling DisableControls updates the detail datasets as you scroll through the dataset, but does not update data-aware controls.Note: Calls to DisableControls can be nested. Only when all calls to DisableControls is matched to a corresponding call to EnableControls does the dataset update data controls and detail datasets.
      

  3.   

    DisableControls断开数据集与绑定数据控件的连接,来提高数据集的处理速度
    EnableControls恢复数据库连接
      

  4.   

    这个功能就是避免控键的闪烁 主要是针对dbgrid
      

  5.   

    DisableControls断开数据集与绑定数据控件的连接,来提高数据集的处理速度
    EnableControls恢复数据控件连接这个功能就是避免控件的闪烁
      

  6.   

    http://community.csdn.net/Expert/TopicView.asp?id=3329996各位网友:另外上现还有一个问题,摆了几天都没有看过,谁知道的告诉一下小弟,即时给分!