active control 是当前窗口获得焦点的控件。

WM_NEXTDLGCTL是一个消息。

perform(WM_NEXTDLGCTL,0,0)是把当前焦点移到下一个控件。

if not (active control is TDBGrid) then

窗口具有active control 属性。

也可以通过setFocus设置焦点。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-09-21
  • 2021-09-14
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-03-03
  • 2021-06-03
  • 2021-12-14
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案