Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.03.20;
Скачать: CL | DM;

Вниз

Перетаскивание формы   Найти похожие ветки 

 
Volly ©   (2003-03-09 18:44) [0]

Как можно перетаскивать форму через Shape и ни за что более?


 
Song ©   (2003-03-09 19:52) [1]

WM_NCHITTEST


 
Volly ©   (2003-03-09 20:28) [2]

Хм... И что?


 
Guerrillero ©   (2003-03-09 23:26) [3]

procedure TForm1.HitTest(var Msg: TWMNCHitTest);
var
P: TPoint;
begin
inherited;
P := Point(Msg.XPos,Msg.YPos);
P := ScreenToClient(P);
if ControlAtPos(P,True,True) = Shape1 then
if Msg.Result = HTCLIENT then
Msg.Result := HTCAPTION;
end;


 
Яков Чебунин   (2003-03-10 03:51) [4]

Проще так:

procedure TForm1.Shape1MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
const SC_DragMove = $F012;
begin
if Button = mbLeft then
begin
ReleaseCapture;
Perform(WM_SysCommand, SC_DragMove, 0);
end;
end;



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

Текущий архив: 2003.03.20;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.024 c
14-64331
sancho{ne_hochu_parol_v_ceshe_ostavit'}
2003-03-04 21:47
2003.03.20
Аудиоплейр


4-64427
dmk
2003-01-26 17:03
2003.03.20
Изменение размеров окна


3-64013
{{{KOTOS}}}
2003-02-28 15:05
2003.03.20
Как мне настроить файл Pdoxusrs.net


14-64295
Dimka Maslov
2003-03-06 14:51
2003.03.20
A War for Peace


14-64348
Roman Go
2003-03-05 09:48
2003.03.20
Кто нибудь встречал компонент