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

Вниз

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

 
Антон.   (2003-02-21 10:37) [0]

procedure TfPrice_list.dbgViewMouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
inherited;
if Button=mbRight then
PM.Popup(X,Y);
end;
странные координаты возвращаются в X и Y приходится писать что то типа PM.Popup(X+60,Y+60); чтобы менюшка появлялась над курсором мыши


 
Clickmaker ©   (2003-02-21 11:14) [1]

procedure TfPrice_list.dbgViewMouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
PopupPos: TPoint;
begin
inherited;
if Button=mbRight then begin
PopupPos := TWinControl(Sender).ClientToScreen(Point(X, Y));
PM.Popup(PopupPos.X, PopupPos.Y);
end;
end;



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

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

Наверх




Память: 0.46 MB
Время: 0.014 c
1-5538
SergeN
2003-02-21 13:25
2003.03.03
console application


14-5713
IronHawk
2003-01-23 17:04
2003.03.03
Третья официальная ВСТРЕЧА Мастаков в КИЕВЕ!!!


14-5722
Дмитрий К.К.
2003-02-12 06:24
2003.03.03
Именинники 12 февраля


14-5779
Sergey Masloff
2003-02-13 16:16
2003.03.03
Осторожно - грипп!


14-5743
Ricks
2003-02-15 15:29
2003.03.03
Вопрос про ICQ