1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38:
| uses graphics,Classes,extctrls;
type TUhr = class(TObject) private Timer :TTimer; Container : TCanvas; X,Y,Radius :smallint; procedure zeichnen; procedure OnTimer(Sender: TObject); public constructor create(Leinwand:TCanvas;pX,pY,pRadius :smallint); end;
implementation
constructor TUhr.create(Leinwand:TCanvas;pX,pY,pRadius :smallint); begin Container := Leinwand; X := pX; Y := pY; Radius := pRadius; Timer := TTimer.Create(nil); Timer.OnTimer := OnTimer; zeichnen; end;
procedure TUhr.OnTimer(Sender: TObject); begin zeichnen; end;
procedure TUhr.zeichnen; begin end;
end. |