Вниз
Скачать: CL | DM;

DrawFocusRect   Найти похожие ветки 

← →
Pascal's programmer ©   (2002-11-06 05:03) [0]


unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;

type
TForm1 = class(TForm)
procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
XPos,YPos:Integer;
MDown:boolean=false;
implementation

{$R *.dfm}

procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var rect:TRect;
begin
if MDown then
begin
rect.Left:=XPos;
rect.Top:=YPos;
Rect.Bottom:=Y;
rect.Right:=X;
DrawFocusRect(handle,rect);
Caption:=Inttostr(x)+" "+inttostr(y);
end;
end;

procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
MDown:=true;
XPos:=x;
YPos:=y;
end;

end.



← →
Pascal's programmer ©   (2002-11-06 05:19) [1]

Это для тех, кто сейчас в чате сидел было



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.013 c
6-82905
Nikolas ShmuS
2002-09-25 01:06
2002.11.25
Задачка = Проверить есть ли комп в сети


3-82676
=SOFT=
2002-11-06 18:40
2002.11.25
interbase 6 - Помогите пожалуйста !!!!!


1-82757
vitnt
2002-11-15 13:15
2002.11.25
StrToDateTime


1-82691
TTCustomDelphiMaster
2002-11-13 16:57
2002.11.25
ActiveX.2


3-82669
Shadow
2002-11-06 17:20
2002.11.25
Сортировка. Быстрая сортировка




   Наверх