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 - [Canvas > Custom Gradients] demo bug, gradient not shown
Summary: [Canvas > Custom Gradients] demo bug, gradient not shown
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Examples Demos (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-30 06:27 EDT by Edu
Modified: 2024-05-30 06:28 EDT (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.