Home > Back-end > C builer, how to realize the abscissa click the chart control?
C builer, how to realize the abscissa click the chart control?
Time:10-24
C + + builer, how to realize the abscissa click the chart control? Know a ClickAxis and GetAxisLabel events, but not used, I want to click here and get the value of the abscissa (I set here is that the time), I want to apply this time value query the database, get one day measurement record, ask everybody to help, thank you
CodePudding user response:
Void __fastcall TFrmChart: : ChartRxLevN1N2MouseUp (TObject * Sender, TMouseButton Button, TShiftState Shift, int X, int Y) { TCustomChart * pSender=dynamic_cast & lt; TCustomChart * & gt; (the Sender); Double Temp=pSender - & gt; The Series [0] - & gt; XScreenToValue (X); }