فهرست منبع

Not displaying ellipsis in the Custom command options dialog title

Source commit: bfe2e4f8ad81a4db26dc7bd07ad85ca1256c335d
Martin Prikryl 9 سال پیش
والد
کامیت
5f0062564e
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      source/forms/Preferences.cpp
  2. 2 2
      source/windows/WinInterface.cpp

+ 1 - 1
source/forms/Preferences.cpp

@@ -2680,7 +2680,7 @@ __fastcall TCustomCommandOptionsDialog::TCustomCommandOptionsDialog(
 {
   FCommand = Command;
   FCustomCommandOptions = CustomCommandOptions;
-  Caption = FMTLOAD(EXTENSION_OPTIONS_CAPTION, (StripHotkey(FCommand->Name)));
+  Caption = FMTLOAD(EXTENSION_OPTIONS_CAPTION, (StripEllipsis(StripHotkey(FCommand->Name))));
   Width = ScaleByTextHeight(this, 400);
 
   for (int Index = 0; Index < FCommand->OptionsCount; Index++)

+ 2 - 2
source/windows/WinInterface.cpp

@@ -967,7 +967,7 @@ __fastcall TCustomCommandPromptsDialog::TCustomCommandPromptsDialog(
 {
 
   FCustomCommandName = CustomCommandName;
-  Caption = FMTLOAD(CUSTOM_COMMANDS_PARAMS_TITLE, (StripEllipsis(FCustomCommandName)));
+  Caption = FMTLOAD(CUSTOM_COMMANDS_PARAMS_TITLE, (FCustomCommandName));
 
   FPrompts = Prompts;
   DebugAssert(FPrompts.size() == Defaults.size());
@@ -1022,7 +1022,7 @@ TWinInteractiveCustomCommand::TWinInteractiveCustomCommand(
   TCustomCommand * ChildCustomCommand, const UnicodeString CustomCommandName, const UnicodeString HelpKeyword) :
   TInteractiveCustomCommand(ChildCustomCommand)
 {
-  FCustomCommandName = StripHotkey(CustomCommandName);
+  FCustomCommandName = StripEllipsis(StripHotkey(CustomCommandName));
   FHelpKeyword = HelpKeyword;
 }
 //---------------------------------------------------------------------------