Browse Source

Scrolling to top when generated code changes (behavior of TMemo)

Source commit: 33816017023275cbc740bfb8f233fef27b9e9b85
Martin Prikryl 9 years ago
parent
commit
504d69a3e8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/forms/GenerateUrl.cpp

+ 1 - 0
source/forms/GenerateUrl.cpp

@@ -385,6 +385,7 @@ void __fastcall TGenerateUrlDialog::UpdateControls()
     Stream->Write(ResultUtf.c_str(), ResultUtf.Length());
     Stream->Position = 0;
 
+    FResultMemo41->Perform(WM_VSCROLL, SB_TOP, 0);
     FResultMemo41->Lines->LoadFromStream(Stream.get(), TEncoding::UTF8);
   }
 }