Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Show text representation of form - Forms - Tips & Tricks - Greatis Delphi Pages

To solve this problem, use ObjectBinaryToText procedure, which converts the binary representation of an object into text.


procedure TForm1.Button1Click(Sender: TObject);
var
  Source: TResourceStream;
  Dest: TMemoryStream;
begin
  Source:=TResourceStream.Create(hInstance, 'TFORM1', RT_RCDATA);
  Dest:=TMemoryStream.Create;
  Source.Position := 0;
  ObjectBinaryToText(Source, Dest);
  Dest.Position := 0;
  Memo1.Lines.LoadFromStream(Dest);
end;
For more
Delphi Help

Download source