Главная страница
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.027 c
1-5600
dron655
2003-02-19 18:49
2003.03.03
Графика


8-5672
AlekseyK
2002-11-16 11:21
2003.03.03
Scroll на image


7-5892
Dr.Karter
2003-01-05 11:29
2003.03.03
Как запускать не *.exe процессы


6-5699
woland
2003-01-14 22:38
2003.03.03
NMPOP3


3-5406
cherdn
2003-02-12 15:41
2003.03.03
Почему при потере фокуса с TDBRichEdit, возникает ошибка...