Вниз
Скачать: 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.014 c
1-5569
[HDD]John
2003-02-19 14:56
2003.03.03
Убрать с формы


14-5795
Makhanev A.S.
2003-02-12 20:03
2003.03.03
Посоветуйте, пожалуйста...


14-5859
Толян
2003-02-14 11:42
2003.03.03
Cristal Reports, где можно скачать?


1-5578
NAlexey
2003-02-19 16:01
2003.03.03
Handle в WindProc?


1-5625
Ihtiandr
2003-02-19 16:24
2003.03.03
Hint Combobox




   Наверх