Hello,
I have different charts with the same popupMenu. When the user click on a popupmenu's tmenuitem, how could i do to know which chart is it?
Thanks for help
Regards
PopupMenu
Re: PopupMenu
Hello,
A quick way is to define a global variable of TChart and inside the OnContextPopup write something like:
Regards
A quick way is to define a global variable of TChart and inside the OnContextPopup write something like:
Code: Select all
procedure TForm1.Chart1ContextPopup(Sender: TObject; MousePos: TPoint;
var Handled: Boolean);
begin
GlobalPLot := sender as TChart; // your global variable
end;
Re: PopupMenu
Thank you
it works good
Regards
it works good
Regards