瀏覽代碼

Set Parent before Name

Might help with:
https://winscp.net/forum/viewtopic.php?p=97914#97914
Emails with Harrison Uhl

Source commit: 6d9914af386132f3613e33694e468a81359d5fab
Martin Prikryl 5 年之前
父節點
當前提交
5f7c2dd1d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/forms/MessageDlg.cpp

+ 1 - 1
source/forms/MessageDlg.cpp

@@ -1066,8 +1066,8 @@ TForm * __fastcall TMessageForm::Create(const UnicodeString & Msg,
     if (!LabelMsg.IsEmpty())
     {
       TLabel * Message = new TLabel(Panel);
-      Message->Name = LabelName;
       Message->Parent = Panel;
+      Message->Name = LabelName;
       Message->WordWrap = true;
       Message->Caption = LabelMsg;
       Message->BiDiMode = Result->BiDiMode;