DblClick Ecnent of TChartEditorPanel not triggered

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

DblClick Ecnent of TChartEditorPanel not triggered

Post by Chartist » Wed Aug 27, 2014 2:28 pm

Hi,

here is a very basic thing.
I want to use a double click event, but I cannot get it fired:

For reproduce

create a new project
add a Tchart
add a TchartEditorPanel
write a doubleClickEvent for TChartEditorPanel

=> start the program, double click the panel
here: nothing happens
The same with the click event.


this time it is very easy to add a sample code:


the code:

Code: Select all

unit Unit7;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VclTee.TeeGDIPlus, VCLTee.TeeEdit,
  VCLTee.TeEngine, Vcl.ExtCtrls, VCLTee.TeeProcs, VCLTee.Chart;

type
  TForm7 = class(TForm)
    Chart1: TChart;
    ChartEditorPanel1: TChartEditorPanel;
    procedure ChartEditorPanel1DblClick(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form7: TForm7;

implementation

{$R *.dfm}

procedure TForm7.ChartEditorPanel1DblClick(Sender: TObject);
begin
  ShowMessage('Why ist this event not fired on double click?');
end;

end.


=================================
the form:

Code: Select all

object Form7: TForm7
  Left = 0
  Top = 0
  Caption = 'Form7'
  ClientHeight = 674
  ClientWidth = 820
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -13
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 120
  TextHeight = 16
  object Chart1: TChart
    Left = 128
    Top = 48
    Width = 657
    Height = 569
    BackWall.Brush.Gradient.Direction = gdBottomTop
    BackWall.Brush.Gradient.EndColor = clWhite
    BackWall.Brush.Gradient.StartColor = 15395562
    BackWall.Brush.Gradient.Visible = True
    BackWall.Transparent = False
    Foot.Font.Name = 'Verdana'
    Gradient.Direction = gdBottomTop
    Gradient.EndColor = clWhite
    Gradient.MidColor = 15395562
    Gradient.StartColor = 15395562
    Gradient.Visible = True
    LeftWall.Color = 14745599
    Legend.Font.Name = 'Verdana'
    RightWall.Color = 14745599
    SubFoot.Font.Name = 'Verdana'
    SubTitle.Font.Name = 'Verdana'
    Title.Font.Name = 'Verdana'
    Title.Text.Strings = (
      'TChart')
    BottomAxis.Axis.Color = 4210752
    BottomAxis.Grid.Color = 11119017
    BottomAxis.LabelsFont.Name = 'Verdana'
    BottomAxis.TicksInner.Color = 11119017
    BottomAxis.Title.Font.Name = 'Verdana'
    DepthAxis.Axis.Color = 4210752
    DepthAxis.Grid.Color = 11119017
    DepthAxis.LabelsFont.Name = 'Verdana'
    DepthAxis.TicksInner.Color = 11119017
    DepthAxis.Title.Font.Name = 'Verdana'
    DepthTopAxis.Axis.Color = 4210752
    DepthTopAxis.Grid.Color = 11119017
    DepthTopAxis.LabelsFont.Name = 'Verdana'
    DepthTopAxis.TicksInner.Color = 11119017
    DepthTopAxis.Title.Font.Name = 'Verdana'
    LeftAxis.Axis.Color = 4210752
    LeftAxis.Grid.Color = 11119017
    LeftAxis.LabelsFont.Name = 'Verdana'
    LeftAxis.TicksInner.Color = 11119017
    LeftAxis.Title.Font.Name = 'Verdana'
    RightAxis.Axis.Color = 4210752
    RightAxis.Grid.Color = 11119017
    RightAxis.LabelsFont.Name = 'Verdana'
    RightAxis.TicksInner.Color = 11119017
    RightAxis.Title.Font.Name = 'Verdana'
    TopAxis.Axis.Color = 4210752
    TopAxis.Grid.Color = 11119017
    TopAxis.LabelsFont.Name = 'Verdana'
    TopAxis.TicksInner.Color = 11119017
    TopAxis.Title.Font.Name = 'Verdana'
    TabOrder = 0
    DefaultCanvas = 'TGDIPlusCanvas'
    ColorPaletteIndex = 13
    object ChartEditorPanel1: TChartEditorPanel
      Left = 208
      Top = 200
      Width = 409
      Height = 291
      TabOrder = 0
      OnDblClick = ChartEditorPanel1DblClick
    end
  end
end
Warm Regards,
Cheryll
Cheryll

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Yeray » Thu Aug 28, 2014 8:24 am

Hello Cheryll,

I could reproduce this so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=903
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Chartist » Thu Aug 28, 2014 4:08 pm

Hi,

thank you for doing so.

What would you recommend as a workaorund?
I use this doubleclidk as "smart clean up" for my panels.
It works like this:
My panels have associated buttons.

OnClick the button happens:
"myPanel".Visible:=true;

Doubleclicking the panels does:
"myPanel".Visible:=false;
and "shrinks" the panel to the button again.

I did not program many panels with this idea.
So it would not be a miracle to change all or them to a different event, which would work with ChartEditorPanel as well.
But which one? Double click is that nice to clean the desktop.

Regards,
Cheryll
Cheryll

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Yeray » Fri Aug 29, 2014 7:19 am

Hi Cheryll,

I'm afraid I can't think on any workaround at the moment.
I'll increment the ticket priority.
I'd suggest you to add you mail to the CC list on the ticket so you can be notified when an update arrives.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Chartist » Fri Aug 29, 2014 3:56 pm

Hi Jeray,

thank you for your answer.

I use TeeChart2013 Pro without source code and my support ID will expire within a few days.
Will there be an update for me?
And if yes, when about?

How do I add this thing you suggested? I have not understood where I can add what.
Would be great to receive just an update information. But to get one mail a week, would be too much, because the one-mail-a-week summed up dramatically in the meanwhile.

Regards,
Cheryll
Cheryll

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Yeray » Wed Sep 03, 2014 3:18 pm

Hi Cheryll,
Chartist wrote:I use TeeChart2013 Pro without source code and my support ID will expire within a few days.
Will there be an update for me?
And if yes, when about?
I'm afraid I can't tell you if this is going to be fixed before your subscription expiration.
I'd suggest you to subscribe to the ticket on the public tracker to be automatically notified when an update arrives. And when you'll know this has been fixed in our internal sources, you'll be free to ask us if we have plans for a maintenance release and what options you have to get that fix.
If at that time your subscription has expired, we may be able to tell you a workaround.
Chartist wrote:How do I add this thing you suggested? I have not understood where I can add what.
In the ticket on the public tracker, you'll find the CC list on the top right section (you need to be registered on the system to see this option):
2014-09-03_1715.png
2014-09-03_1715.png (197.3 KiB) Viewed 13593 times
Chartist wrote:Would be great to receive just an update information. But to get one mail a week, would be too much, because the one-mail-a-week summed up dramatically in the meanwhile.
This system doesn't send spam, just a mail with the information detailing the modifications the according ticket has suffered.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Chartist » Wed Sep 03, 2014 4:04 pm

Hi Yeray,

thank you for your reply.

This may be the reason, why I did not manage it:
There is no box reading "cc" for me. Probably this is, because I am not logged in. I must not edit anything.
Unfortunately I do not have the permission to this site. The password from here is not accepted.

Is there an alternative way to add my name?

Thanks,
Cheryll
Cheryll

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Yeray » Thu Sep 04, 2014 7:12 am

Hi Cheryll,
Chartist wrote:Unfortunately I do not have the permission to this site. The password from here is not accepted.

Is there an alternative way to add my name?
There registration at that site is open. You don't need to have a license to create an account there and start creating, commenting and following issues:
http://bugs.teechart.net/createaccount.cgi
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Chartist
Newbie
Newbie
Posts: 60
Joined: Wed Sep 18, 2013 12:00 am

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Chartist » Thu Sep 04, 2014 10:03 am

Hi Yeray,

thank you for your reply.
Unfortunately it did not work.
I retried several times, allowed cookies, asked for a password reset.
Did not work.

I keep reading:
"Die Kombination aus Benutzername und Passwort ist ungültig. "
(=the combination of user name and password is not valid)

My user name is Cheryll as well, the chosen secundary mail-address is used by the system to send tokens.
So the address is saved.

(btw: The password-resend-field asks to key in the "user name". To my mind, it expects "e-mail" instead.)

Regards,
Cheryll
Cheryll

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DblClick Ecnent of TChartEditorPanel not triggered

Post by Yeray » Thu Sep 04, 2014 3:14 pm

Hi Cheryll,

The username to login is the mail you've provided in the registration.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply