unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, JvExComCtrls, JvComCtrls, MySQL_Connection, JvExControls,
JvComponent, JvLabel, JvDateTimePicker, StdCtrls, Mask, JvExMask, JvToolEdit,
JvMaskEdit, JvButton, JvTransparentButton, Buttons, JvExButtons, JvBitBtn,
DbListViewScrollParentUnit, DbListView, ExtCtrls, JvExExtCtrls, JvPanel;
type
TForm1 =
class(TForm)
JvPageControl1: TJvPageControl;
MySQL1: TMySQL;
JvLabel1: TJvLabel;
JvDateTimePicker1: TJvDateTimePicker;
JvLabel2: TJvLabel;
JvLabel3: TJvLabel;
JvLabel4: TJvLabel;
JvMaskEdit1: TJvMaskEdit;
JvMaskEdit2: TJvMaskEdit;
JvMaskEdit3: TJvMaskEdit;
JvBitBtn1: TJvBitBtn;
DbListView1: TDbListView;
JvLabel5: TJvLabel;
JvLabel6: TJvLabel;
TS_Irgendwas: TTabSheet;
TS_WasAnderes: TTabSheet;
JvPanel1: TJvPanel;
procedure JvPanel1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure JvPanel1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure JvPanel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure JvPageControl1Change(Sender: TObject);
private
lTanken :
array of RTanken;
mbdown : Boolean;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.JvPageControl1Change(Sender: TObject);
var
s :
String;
i : Integer;
j : Integer;
rv :
array of Double;
max : Double;
min : Double;
mit : Double;
x: Integer;
y: Integer;
begin
if JvPageControl1.ActivePage.Name='
TS_WasAnderes'
then begin
// QuellCode uninteressant
end;
// -------------------------------------
// - Irgendwas
// -------------------------------------
if JvPageControl1.ActivePage.Name='
TS_Irgendwas'
then begin
ClientHeight := 244;
ClientWidth := 750;
Left := Screen.Width
div 2 - Width
div 2;
Top := Screen.Height
div 2 - Height
div 2;
JvPanel1.Brush.Color := clBlack;
JvPanel1.Canvas.Brush.Color := clBlack;
x := 5;
y := JvLabel5.Top+(JvLabel5.Height
div 2);
JvPanel1.Canvas.MoveTo(x, y);
y := JvLabel6.Top+(JvLabel6.Height
div 2);
JvPanel1.Canvas.LineTo(x, y);
JvPanel1.Canvas.TextOut(100, 100, '
Servus');
JvPanel1.Canvas.LineTo(100, 100);
end;
end;
procedure TForm1.JvPanel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
mbdown := true;
JvPanel1.Canvas.TextOut(100, 100, '
Servus');
JvPanel1.Canvas.MoveTo(x, y);
end;
procedure TForm1.JvPanel1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
mbdown := false;
end;
procedure TForm1.JvPanel1MouseMove(Sender: TObject; Shift: TShiftState;
X, Y: Integer);
begin
if mbdown
then
JvPanel1.Canvas.LineTo(x, y);
Caption := Format('
X: %3d, Y: %3d', [X, Y]);
end;
end.