Selaa lähdekoodia

Comment on possibility of reusing FindStandardButton

Source commit: 1747c3519e135f253dc3c1d2279778d1f0a7c58d
Martin Prikryl 6 vuotta sitten
vanhempi
sitoutus
620058ee42
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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]);