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 2716

Summary: [Canvas > Custom Gradients] demo bug, gradient not shown
Product: .NET TeeChart Reporter: Edu <edu>
Component: Examples DemosAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Edu 2024-05-30 06:27:27 EDT
The rectangle that should have a gradient doesn't have one. For FR48 it works perfectly.
Comment 1 Edu 2024-05-30 06:28:11 EDT
This demo had an issue where the little gradient that can be edited wasn’t working in NET6.
After investigating, what was really not working turned out to be the “Resize” event. Using AfterDraw and adjusting the code a little bit, it works perfectly fine now.

The readjusted code looks like this:
 if (rbRadial.Checked) gradient.Style.Direction = rectangle.Shape.Gradient.Style.Direction = Steema.TeeChart.Drawing.PathGradientMode.Radial;
            else gradient.Style.Direction = rectangle.Shape.Gradient.Style.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter;

Because on every repaint it would do the same PathGradientMode without the if/else.