TButtonGradient Access Violation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Rclement
Newbie
Newbie
Posts: 2
Joined: Wed Nov 14, 2007 12:00 am
Location: Edinburgh

TButtonGradient Access Violation

Post by Rclement » Thu Apr 10, 2008 2:15 pm

Hi

I am trying to assign gradient colors to a TButtonGradient control at run time.

BG.Gradient.StartColor := clred;

When this line executes I receive an Access Violation, is there something I am doing wrong?

Delphi 2007/ TeeChart 8.02

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 11, 2008 10:58 am

Hi Rclement,

I'm not able to reproduce the issue here using Delphi 2007, v8.02 and the code below. Does it work fine at your end? Could you please modify it so that we can reproduce the issue here?

Code: Select all

  Chart1.Gradient.Visible:=true;
  ButtonGradient1.LinkGradient( Chart1.Gradient );
  ButtonGradient1.Gradient.StartColor:=clRed;
Thanks in advance.
Best Regards,
Narcís Calvet / 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

Rclement
Newbie
Newbie
Posts: 2
Joined: Wed Nov 14, 2007 12:00 am
Location: Edinburgh

Post by Rclement » Fri Apr 11, 2008 11:37 am

Sorry

My misunderstanding. The TButtonGradient works correctly. I thought that I could change the gradient 'OF' the button without a link to a chart.
R Clement

Post Reply