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

Chart   Найти похожие ветки 

← →
Лана Розанова ©   (2002-05-27 12:06) [0]

Как сделать так, чтобы при скроллинге правой кнопкой мыши графика не вылезала PopupMenu. И вылезала когда надо?
СПАСИБО!!!


← →
KilkennyCat ©   (2002-05-27 12:57) [1]

ChartMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if (button = mbRight) and МенюМожно then Meню.PopUp(x,y);
end;


← →
MBo ©   (2002-05-27 13:08) [2]

если я правильно понял вопрос, то

var
savepopup:TPopupMenu;
...

procedure TForm1.Chart1Scroll(Sender: TObject);
begin
if chart1.PopupMenu<>nil then begin
savepopup:=chart1.PopupMenu;
chart1.PopupMenu:=nil;
end;
end;

procedure TForm1.Chart1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if (chart1.PopupMenu=nil) and (savepopup<>nil) then
chart1.PopupMenu:=savepopup;
end;



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

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



Память: 0.45 MB
Время: 0.009 c
6-18083
MasterA
2002-03-26 20:25
2002.06.06
Протоколы взаимодействия


1-17932
Sniffer
2002-05-26 17:31
2002.06.06
Давайте обсудим


1-17944
Dimonka
2002-05-28 09:19
2002.06.06
Help файл


3-17801
archey
2002-05-15 15:12
2002.06.06
добавить запись в access


1-17979
Yuri Btr
2002-05-28 15:18
2002.06.06
DLL




   Наверх