Вниз
Скачать: 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 вся ветка

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



Память: 0.44 MB
Время: 0.02 c
14-5710
alex_bredin
2003-02-12 10:41
2003.03.03
InstallShield Express for Delphi 6


1-5490
AFrolov
2003-02-19 12:12
2003.03.03
Сравнение 2 строк как с помощью LIKE в SQL


3-5440
bmt
2003-02-13 14:19
2003.03.03
InterBase


1-5599
Adolf
2003-02-19 21:40
2003.03.03
RichEdit1


1-5606
Alexandr3
2003-02-19 07:14
2003.03.03
Проблемма с окнами




   Наверх