Главная страница
    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.44 MB
Время: 0.007 c
14-64282
Scorp
2003-03-06 08:56
2003.03.20
Добавление файла в проект


3-64046
Dim!S
2003-03-03 09:25
2003.03.20
Строка в два ряда


1-64149
Leo^Sun
2003-02-26 15:38
2003.03.20
Руссификация MessageDlg


6-64256
Jurgen
2003-01-29 07:55
2003.03.20
X.25


1-64143
MadGhost
2003-03-07 07:37
2003.03.20
MDI





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский