ClickBackground event never fired

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Buchi
Newbie
Newbie
Posts: 6
Joined: Thu Nov 15, 2012 12:00 am

ClickBackground event never fired

Post by Buchi » Wed Apr 24, 2013 1:53 pm

Hi
One of our software products is no longer working after migrating to TeeChart v4.1.2012.09280. It seems that the TChart.ClickBackground event is never fired. I checked out your samples and found one that makes use of ClickBackground too: Series_TagCloud
Funnily this example is broken too...
Has this problem already been fixed in more recent releases?
Thanks for a short answer,
Manuel

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickBackground event never fired

Post by Sandra » Thu Apr 25, 2013 1:16 pm

Hello Manuel,

You are right. I can reproduce your problem. I have added it in bug list report with number [TF02016559]. We have already fixed it for next maintenance release of TeeChartFor.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Buchi
Newbie
Newbie
Posts: 6
Joined: Thu Nov 15, 2012 12:00 am

Re: ClickBackground event never fired

Post by Buchi » Fri Apr 26, 2013 4:49 am

Hi Sandra
Could you please tell us when this maintenance release will get available? In case this will not happen in the very near future, is there any easy workaround available?
Thanks,
Manuel

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickBackground event never fired

Post by Sandra » Fri Apr 26, 2013 8:00 am

Hello Buchi,

The bus is fixed for next maintenance release of TeechartFor.Net, but I am afraid I can not provide a estimate date of when next maintenance release will be published. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them. On the other hand, as a workaround you can use TChart Mouseclick or Click events as I have done in next example:

Code: Select all

  public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        private void InitializeChart()
        {

            tChart1.Aspect.View3D = false;

            Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);

            for (int i = 0; i < 10; i++)
            {
                line1.Add(i);
            }
             tChart1.Click += tChart1_Click;
           
        }
                  
          
        void tChart1_Click(object sender, EventArgs e)
        {
            this.Text = "Click"; 
        }
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Buchi
Newbie
Newbie
Posts: 6
Joined: Thu Nov 15, 2012 12:00 am

Re: ClickBackground event never fired

Post by Buchi » Fri Apr 26, 2013 9:24 am

Hi Sandra
Thanks for the fast reply. To not know when this maintenance release will get available is a bit of a problem for us. Since the bug is already fixed, would it be possible to get a hotfix release?
Regarding the suggested workaround it is to say that in our case many other click events on lines and other things are used. The ClickBackground is raised only when there is no other object in front while the click event seems to be raised for every click. Therefore we would additionally need to figure out whether any kind of object is in front of the background at that location.
Regards,
Manuel

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickBackground event never fired

Post by Sandra » Fri Apr 26, 2013 2:40 pm

Hello Manuel,
Thanks for the fast reply. To not know when this maintenance release will get available is a bit of a problem for us. Since the bug is already fixed, would it be possible to get a hotfix release?
We are considering this option and I inform you asap.
The ClickBackground is raised only when there is no other object in front while the click event seems to be raised for every click. Therefore we would additionally need to figure out whether any kind of object is in front of the background at that location.
Ok. I have made a simple modifications in MouseClick event, because it will have the same behaviour that ClickBackground event and I think you can use the code as a workaround:

Code: Select all

  void tChart1_MouseClick(object sender, MouseEventArgs e)
        {
            if (tChart1[0].Clicked(e.X, e.Y) == -1 && !tChart1.Header.Clicked(e.X,e.Y))
            {
                
                this.Text = "ClickBackground";
            }
        }
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Buchi
Newbie
Newbie
Posts: 6
Joined: Thu Nov 15, 2012 12:00 am

Re: ClickBackground event never fired

Post by Buchi » Tue May 07, 2013 10:09 am

Hi Sandra
Any news about the Hotfix release?
There are two additional problems with another of our software products we just started to migrate. Regards,
Manuel

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickBackground event never fired

Post by Sandra » Tue May 07, 2013 11:20 am

Hello Maunel,
Any news about the Hotfix release?
I can not provide you a estimate date, but I hope we can have a new maintenance release of TeeChartFor.Net in a few weeks. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
There are two additional problems with another of our software products we just started to migrate.
The designer files cannot be saved. This is the same issue as described here: http://stackoverflow.com/questions/1509 ... too%20also
I inform you this bug is fixed for next maintenance release of TeeChartFor.Net.
Steema.TeeChart.Styles.Area does not seem to behave as in TeeChart v2.0. We have not investigated that in detail yet.
We would be very grateful if you could tell us what is the behavior of Series Area you consider incorrect, because we can try to give you a good answer about this topic.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply