浏览代码

Comment on possibility of reusing FindStandardButton

Source commit: 1747c3519e135f253dc3c1d2279778d1f0a7c58d
Martin Prikryl 6 年之前
父节点
当前提交
620058ee42
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/forms/Rights.cpp

+ 2 - 1
source/forms/Rights.cpp

@@ -537,8 +537,9 @@ void __fastcall TRightsFrame::Dispatch(void * Message)
 void __fastcall TRightsFrame::DropDown()
 {
   TCustomForm * Form = GetParentForm(this);
-  // due to lack of better idea, we clear "default" and "cancel" flags of respective
+  // Due to lack of better idea, we clear "default" and "cancel" flags of respective
   // form buttons to prevent them to handle ESC/ENTER keys.
+  // Could use FindStandardButton.
   for (int Index = 0; Index < Form->ControlCount; Index++)
   {
     TButton * Button = dynamic_cast<TButton *>(Form->Controls[Index]);