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 297 - [TV52015788] A chart using OpenGL isn't shown the first time it is shown. 2 ways t...
Summary: [TV52015788] A chart using OpenGL isn't shown the first time it is shown. 2 w...
Status: RESOLVED WORKSFORME
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 12:29 EDT by yeray alonso
Modified: 2013-12-04 10:13 EST (History)
1 user (show)

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 yeray alonso 2013-11-20 10:37:04 EST
A chart using OpenGL isn't shown the first time it is shown. 2 ways to reproduce the same:
- Open the TeeNew demo. Open any demo that uses OpenGL (for example "All features\Welcome !\Components\OpenGL\Tri Surface"). The first time you open it, the chart isn't shown. The, if you navigate to another demo that uses OpenGL (for example "All features\Welcome !\Components\OpenGL\GL Canvas"), it works fine. And it will also work fine the demo that didn't work before.
- Use the code bellow. When the form is shown, the chart isn't. But if you click the button to recreate the TTOpenGL object, it works fine.
uses Chart, TeeOpenGL, TeeSurfa;
var Chart1: TChart;
    TeeOpenGL1: TTeeOpenGL;
    Series1: TSurfaceSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.AddSeries(TSurfaceSeries).FillSampleValues;
  TeeOpenGL1:=TTeeOpenGL.Create(Self);
  TeeOpenGL1.TeePanel:=Chart1;
  TeeOpenGL1.Active:=True;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
  TeeOpenGL1:=TTeeOpenGL.Create(Self);
  TeeOpenGL1.TeePanel:=Chart1;
  TeeOpenGL1.Active:=True;
end; [created:2011-10-18T11:29:22.000+01:00 reported by:yeray@steema.com reported in version:2011.03.30407 (TeeChart VCL)]
Comment 1 david berneda 2013-12-04 10:13:19 EST
This works fine with latest source code (at runtime).

Pending: 

Under Windows Vista and up, depending on "Aero" theme selected or not, at design-time, moving or resizing a Chart with OpenGL canvas is blank (while moving or resizing).