1
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
5f7c2dd1d6

+ 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;