Показать сообщение отдельно
  #2  
Старый 12.11.2010, 08:33
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

Код:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Print;
end;

или

Код:
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  StdCtrls, ComCtrls;

procedure TForm1.Button1Click(Sender: TObject);
var
  RichEdit: TRichEdit;
  i: Integer;
begin
  RichEdit:=TRichEdit.Create(Self);
  RichEdit.Parent:=Self;
  try
    for i:=0 to ComponentCount-1 do
      if Components[i] is TLabel then RichEdit.Lines.Add(TLabel(Components[i]).Caption);
    RichEdit.Print('');
  finally
    RichEdit.Free;
  end;
end;
__________________
Пишу программы за еду.
__________________
Ответить с цитированием