Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2279 - Can not trigger an event When clicking a button
Summary: Can not trigger an event When clicking a button
Status: RESOLVED WONTFIX
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-20 03:00 EST by liujia
Modified: 2020-03-30 04:39 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
screenshot (148.84 KB, application/x-rar)
2020-01-20 03:00 EST, liujia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liujia 2020-01-20 03:00:29 EST
Created attachment 927 [details]
screenshot

Steps:
1.I use the Tchart to draw a 3D figure. Then I add some points3Ds,and I set the "Tools"->"Other"->"Rotate".
2.I set the tchart event called "tchart1.ClickSeries".

My problem:
I can click the points3D to trigger "tchart1.ClickSeries" event When the tchart is loading completed.
But I can not trigger this event when I click or drag the tchart to rotate.
Comment 1 liujia 2020-01-20 03:01:45 EST
But I can not trigger this event after I click or drag the tchart to rotate.
Comment 2 christopher ireland 2020-01-20 08:35:58 EST
Hello!

This is expected behavior - there's a thread on the support forums in which the same happens in a similar set of circumstances:

http://support.steema.com/viewtopic.php?f=3&t=6821

Unfortunately we have no plans to attempt to get this to work.
Comment 3 christopher ireland 2020-01-20 08:41:15 EST
By adding a Rotate tool to a Chart and rotating it, the Chart is automatically displayed in:

Orthogonal=false

If you set this to true, i.e.

_tChart.Aspect.Orthogonal = true;

You will see the difference and will also be able to get the ClickedSeries event working again.
Comment 4 liujia 2020-01-20 20:40:18 EST
Thank you!
I have another question about the 3D  figure. 
I want to show the "Z" Mark Tips when the mouse over the points.But I can not find
any set configs.The Mark Tips panel has only "Value","Percent","Label"..."X and Y"
Comment 5 liujia 2020-01-20 21:02:16 EST
I want to display some custom information on marktip,what should I do?
Comment 6 liujia 2020-01-20 21:34:18 EST
I have solved my problem of comment 5
Comment 7 christopher ireland 2020-01-21 07:08:38 EST
with respect to your comment 4: 

You can use code similar to the following:

        TChart _tChart;
        Points3D _points3D;
        MarksTip _marksTip;

        public Form1()
        {
            InitializeComponent();

            _tChart = new TChart();
            _tChart.Dock = DockStyle.Fill;
            splitContainer1.Panel2.Controls.Add(_tChart);

            _points3D = new Points3D(_tChart.Chart);
            _points3D.FillSampleValues();

            _tChart.Aspect.View3D = true;
            _tChart.Aspect.Chart3DPercent = 50;

            _marksTip = new MarksTip(_tChart.Chart)
            {
                Series = _points3D,
                Style = MarksStyles.XValue
            };
            _marksTip.GetText += _marksTip_GetText;
        }

        private void _marksTip_GetText(MarksTip sender, MarksTipGetTextEventArgs e)
        {
            var idx = _points3D.XValues.Value.Select(x => x.ToString(_points3D.ValueFormat)).ToList().IndexOf(e.Text);
            var yval = _points3D.YValues[idx].ToString(_points3D.ValueFormat);
            var zval = _points3D.ZValues[idx].ToString(_points3D.ValueFormat);

            e.Text += $" {yval} {zval}";
        }