Главная страница
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.015 c
3-5404
Andrio
2003-02-12 14:20
2003.03.03
IB не хочет выполнять генераторы???


14-5730
Ricks
2003-02-13 23:51
2003.03.03
ICQ


1-5568
sdfjhgd
2003-02-18 21:31
2003.03.03
Вопрос по ListBox y


1-5479
Dr.Abolo
2003-02-19 12:35
2003.03.03
перехват клавиши


3-5428
Sirus
2003-02-13 06:49
2003.03.03
Можно ли TQuery из DLL связать с TDatabase из основной программы?