Вниз
Скачать: CL | DM;

вывод TPopupMenu с Timage при нажатии на левую кнопку мыши   Найти похожие ветки 

 
I-New   (2007-04-10 18:59) [0]

Хай. Как сделать чтобы РopuрMenu на Timage выводился на левую кнопку а не на правую? Подскажите плиз


 
Vlad Oshin ©   (2007-04-10 19:36) [1]

Image1MouseDown(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
begin
if button=mbLeft then popupmenu1.Popup(x+image1.Left+image1.Height,y+image1.Top);
сам подсчитай координаты :)


 
Fredy314 ©   (2007-04-10 19:49) [2]

лучше в onMouseUp


 
Германн ©   (2007-04-11 01:03) [3]


> Fredy314 ©   (10.04.07 19:49) [2]
>
> лучше в onMouseUp
>

А чем в onMouseUp лучше?


 
zap8   (2007-04-11 03:16) [4]

procedure TForm1.Image1Click(Sender: TObject);
var
P:TPoint;
begin
  GetCursorPos(P);
  PopupMenu1.Popup(P.x,P.y)
end;


 
zap8   (2007-04-11 06:45) [5]

И еще проще

procedure TForm1.Image1Click(Sender: TObject);
begin
 with Mouse.CursorPos Do PopupMenu1.Popup(x,y)
end;



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

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



Память: 0.45 MB
Время: 0.028 c
1-1175842348
Darth Avenger
2007-04-06 10:52
2007.06.03
Шрифт в приложении


15-1178814105
Ccill
2007-05-10 20:21
2007.06.03
Предложение к командирам сайта


15-1176464361
CCili
2007-04-13 15:39
2007.06.03
Почему Тарковский не_реальный cool?!


3-1173705345
Thely
2007-03-12 16:15
2007.06.03
Интеграция FIBPlus и FastReport 3.0?


3-1173879416
Vladisllav
2007-03-14 16:36
2007.06.03
Связь двух таблиц Ib в Delphi




   Наверх