このコンポーネントの [コピー] [貼り付け] の動作がどのような仕組みで行われるかを理解するためのテストです.
図の下のコードをコピーして,フォームに [Ctrl] + [V] で貼り付けると,図のようになります.
文字コードの関係がありますので,テストは Delphi 2009 以降で行ってください.

このコードをコピーしてフォームに貼り付けることができる
object Panel1: TPanel Left = 24 Top = 9 Width = 185 Height = 121 Caption = 'Panel1' Color = 16769962 ParentBackground = False TabOrder = 0 object Button1: TButton Left = 16 Top = 16 Width = 75 Height = 25 Caption = 'Button1' TabOrder = 0 OnClick = Button1Click end object Button2: TButton Left = 16 Top = 41 Width = 75 Height = 25 Caption = 'Button2' TabOrder = 1 end object Edit1: TEdit Left = 35 Top = 83 Width = 121 Height = 21 TabOrder = 2 Text = 'テスト' end end
|