Czy ktos moze mi powiedziec dlaczego nie widac efektu danych linijek kodu?
Inaczej mowiac, czemu nic nie widac na formie!? {glowa}
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
with Form1.Canvas do begin
Pen.Color:=clBlack;
MoveTo(0, 0);
LineTo(ClientWidth, ClientHeight);
MoveTo(0, ClientHeight);
LineTo(ClientWidth, 0);
end;
end;
end.
Ehh...a jesli robie to zle...to jak cos narysowac na formie?--take care,
Wodzu