unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ToolWin, ComCtrls, ExtCtrls, StdCtrls, Menus, Buttons;
type
TForm1 =
class(TForm)
procedure SpeedButton7Click(Sender: TObject);
procedure SpeedButton8Click(Sender: TObject);
procedure SpeedButton9Click(Sender: TObject);
procedure ScrollBox1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure SpeedButton12Click(Sender: TObject);
procedure SpeedButton13Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
//...
private
werkzeug:
string;
zaehler, zaehler1, menge: integer;
//...
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
uses Farben;
{$R *.DFM}
//....
Procedure TForm1.PaintBox1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var xwert, ywert,i: Integer;
begin
StatusBar1.Panels[1].Text := Format('
%d : %d', [X,Y]);
if Zeichnen
then begin
if werkzeug='
pinsel'
then begin
Bild.canvas.Brush.Style := bssolid;
Bild.canvas.Pen.Color := farben.vordergrundfarbe;
//....