Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.06;
Скачать: 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 вся ветка

Текущий архив: 2002.06.06;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
1-18040
Tosha_a
2002-05-24 19:09
2002.06.06
Работа со StringGrid


1-18056
Валет
2002-05-24 18:37
2002.06.06
edit1.Text:=edit1.Text - ПОСЛЕДНИЙ ВВЕДЁННЫЙ СИМВОЛ;


6-18075
interier
2002-03-22 10:50
2002.06.06
Как посмотреть - не занят ли порт?


14-18115
AndreyS
2002-04-29 18:40
2002.06.06
Общий вопрос


1-17941
esprit_bel
2002-05-28 08:20
2002.06.06
FindFirst