Some long standing bugs
Some long standing bugs
Hello,
Here is a project showing 3 bugs that I noticed already for a long time and that are somehow not getting fixed in any release:
1) The position of the title of the Depth Right axis is completely OFF (for OpenGL mode)
2) The Mark Tips tool doesn't work at all in 3D OpenGL mode (No hints get shown)
3) It is impossible to switch ON/OFF series in the Legend when the Chart/TeeCommander mode is different from Select mode, which is very disturbing. In 2D mode it is well possible to zoom AND use the Legend for switching on/off series.
Are there any fixes for that?
best regards,
Thomas
Here is a project showing 3 bugs that I noticed already for a long time and that are somehow not getting fixed in any release:
1) The position of the title of the Depth Right axis is completely OFF (for OpenGL mode)
2) The Mark Tips tool doesn't work at all in 3D OpenGL mode (No hints get shown)
3) It is impossible to switch ON/OFF series in the Legend when the Chart/TeeCommander mode is different from Select mode, which is very disturbing. In 2D mode it is well possible to zoom AND use the Legend for switching on/off series.
Are there any fixes for that?
best regards,
Thomas
- Attachments
-
- TChartBugs.zip
- Project showing 3 bugs
- (54.33 KiB) Downloaded 1428 times
Re: Some long standing bugs
Hello,
http://bugs.teechart.net/show_bug.cgi?id=697
I've incremented its priority.
http://bugs.teechart.net/show_bug.cgi?id=804
http://bugs.teechart.net/show_bug.cgi?id=1262
http://bugs.teechart.net/show_bug.cgi?id=1929
Right. That's an old ticket:
http://bugs.teechart.net/show_bug.cgi?id=697
I've incremented its priority.
I can't find a ticket exactly matching this description but I find some tickets that look related:
http://bugs.teechart.net/show_bug.cgi?id=804
http://bugs.teechart.net/show_bug.cgi?id=1262
http://bugs.teechart.net/show_bug.cgi?id=1929
I can't find a ticket reporting this earlier. Do you have a reference?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hello Yeray,
No, I actually don't have a reference for the 3rd bug. It is so obvious and disturbing when you use a 3D Chart that I thought it must be listed somewhere.
These checkboxes should be either clearly disabled/grayed out when not accessible or they should just work.
best regards,
Thomas
No, I actually don't have a reference for the 3rd bug. It is so obvious and disturbing when you use a 3D Chart that I thought it must be listed somewhere.
These checkboxes should be either clearly disabled/grayed out when not accessible or they should just work.
best regards,
Thomas
Re: Some long standing bugs
I've found a possible fix for this. You just have to add a "-" sign to the "glTranslatef(-x,y,-z)" call in theYeray wrote: ↑Wed Dec 11, 2019 3:13 pmRight. That's an old ticket:
http://bugs.teechart.net/show_bug.cgi?id=697
I've incremented its priority.
TGLCanvas.RotateLabel3D
function in TeeGLCanvas.pas:Code: Select all
procedure TGLCanvas.RotateLabel3D(x,y,z:Integer; Const St:String; RotDegree:Double;
AllowHTML:Boolean=False);
begin
glPushMatrix;
glTranslatef(x,-y,0);
glRotatef(RotDegree,0,0,1);
glTranslatef(-x,y,-z);
TextOut(X,Y,St);
glPopMatrix;
Assert(CheckGLError,'RotateLabel3D');
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hello again,
http://bugs.teechart.net/show_bug.cgi?id=2270
However, I don't see any difference between 2D and 3D modes.
- In 2D & normal mode selected, you can draw a zoom rectangle and you can use the legend checkboxes.
- In 3D & normal mode selected, you can draw a zoom rectangle and you can use the legend checkboxes.
- In 2D & zoom mode selected, you can zoom the chart but the legend checkboxes don't work.
- In 3D & zoom mode selected, you can zoom the chart but the legend checkboxes don't work.
It also does the same in GDIPlus.
I've added it to the public tracker here:
http://bugs.teechart.net/show_bug.cgi?id=2270
However, I don't see any difference between 2D and 3D modes.
- In 2D & normal mode selected, you can draw a zoom rectangle and you can use the legend checkboxes.
- In 3D & normal mode selected, you can draw a zoom rectangle and you can use the legend checkboxes.
- In 2D & zoom mode selected, you can zoom the chart but the legend checkboxes don't work.
- In 3D & zoom mode selected, you can zoom the chart but the legend checkboxes don't work.
It also does the same in GDIPlus.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hi Yeray,
the change in TGLCanvas.RotateLabel3D indeed fixes the position of the axis label but still, the orientation is obviously wrong: Can you please fix that too?
The label should like all others run along the axis.
Thanks and best regards,
Thomas
the change in TGLCanvas.RotateLabel3D indeed fixes the position of the axis label but still, the orientation is obviously wrong: Can you please fix that too?
The label should like all others run along the axis.
Thanks and best regards,
Thomas
Re: Some long standing bugs
Hello,
You can set the Depth axis angle to zero:
This angle is 270 by default for both OpenGL, GDI and GDIPlus. Changing that default could brake other customers projects who may be expecting it to be 270.
You can set the Depth axis angle to zero:
Code: Select all
TheChart.DepthAxis.Title.Angle:=0;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hi Yeray,
No, that doesn't help, the Title still shows a wrong alignment: The Title should run parallel to the axis, like the Titles of all other axes,
this title rotates perpendicular to the axis around the axis.
Thomas
No, that doesn't help, the Title still shows a wrong alignment: The Title should run parallel to the axis, like the Titles of all other axes,
this title rotates perpendicular to the axis around the axis.
Thomas
Re: Some long standing bugs
Hello,
I don't think that would look nice:
Note the labels and the title for that depth axis wouldn't be in the same plane.
I don't think that would look nice:
Note the labels and the title for that depth axis wouldn't be in the same plane.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hello Yeray,
that is indeed bad, I had expected it to look something like that:
best regards,
Thomas
that is indeed bad, I had expected it to look something like that:
best regards,
Thomas
Re: Some long standing bugs
Hello,
That could be achieved incrementing the font size. However, the axis title would be in a plane perpendicular to the labels for the same axis. So, if you rotate the chart to see the title from the front, you won't be able to read the labels.
That could be achieved incrementing the font size. However, the axis title would be in a plane perpendicular to the labels for the same axis. So, if you rotate the chart to see the title from the front, you won't be able to read the labels.
Code: Select all
uses OpenGL2;
Code: Select all
procedure TForm2.FillTheScoreChart(TheChart: TChart; Color: TColor; Title: string; IsVisible: Boolean);
//...
TheChart.DepthAxis.Title.Font.Size:=15;
TheChart.DepthAxis.Title.Visible:=False;
//...
Code: Select all
procedure TForm2.PLSScoresChartAfterDraw(Sender: TObject);
var x, y, z, RotDegree: Integer;
begin
with PLSScoresChart.Axes.Depth do
begin
RotDegree:=Title.Angle;
x:=PosTitle;
y:=PLSScoresChart.ChartRect.Bottom-Round(PLSScoresChart.ChartHeight*ZPosition*0.01);
z:=PLSScoresChart.Width3D div 2;
glPushMatrix;
glTranslatef(x,0,0);
glRotatef(-RotDegree,0,1,0);
//glTranslatef(-x,0,0);
PLSScoresChart.Canvas.Font.Assign(Title.Font);
PLSScoresChart.Canvas.TextOut(Z-20,Y+15,Title.Text);
glPopMatrix;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hi Yeray,
Ok, that looks a lot better and correct now.
> if you rotate the chart to see the title from the front, you won't be able to read the labels.
That's fine because if you don't rotate the chart you can't read anything else on the Z(depth)-axis either.
If you want to see and read all 3 axes you need to rotate the chart into the shown position, then all axes are evenly exposed.
Now the code should be fixed so that this gets the default behavior for the axes titles.
So we wouldn't need to put extra code in the OnAfterDraw event.
best regards,
Thomas
Ok, that looks a lot better and correct now.
> if you rotate the chart to see the title from the front, you won't be able to read the labels.
That's fine because if you don't rotate the chart you can't read anything else on the Z(depth)-axis either.
If you want to see and read all 3 axes you need to rotate the chart into the shown position, then all axes are evenly exposed.
Now the code should be fixed so that this gets the default behavior for the axes titles.
So we wouldn't need to put extra code in the OnAfterDraw event.
best regards,
Thomas
Re: Some long standing bugs
Hello Thomas,
That's the reason why I posted code you can use to draw the title as you'd expect.
Maybe we could add some extra property to control how the depth axis title should be aligned. We'll study what alternatives we have here.
I closed the ticket with the fix I proposed here, which draws the title in the same plane with the rest of texts, not following the axis direction as you require.
That's the reason why I posted code you can use to draw the title as you'd expect.
Maybe we could add some extra property to control how the depth axis title should be aligned. We'll study what alternatives we have here.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some long standing bugs
Hi Yeray,
An extra property would be great!
Now I have to put this OnAfterDraw event with extra code all over the place, everywhere where TChart is used in the codebase.
It would be much better to fix this problem in ONE place.
Also, an extra property would not break old code/behavior.
It would be great if the other 2 problems (in the beginning of this thread) could get solved too,
best regards,
Thomas
An extra property would be great!
Now I have to put this OnAfterDraw event with extra code all over the place, everywhere where TChart is used in the codebase.
It would be much better to fix this problem in ONE place.
Also, an extra property would not break old code/behavior.
It would be great if the other 2 problems (in the beginning of this thread) could get solved too,
best regards,
Thomas
Re: Some long standing bugs
Hello Thomas,
I agree and I've added the request to the public tracker #2272. As you can see, there's a number of related things to consider.axrDegen wrote: ↑Thu Dec 19, 2019 8:12 amAn extra property would be great!
Now I have to put this OnAfterDraw event with extra code all over the place, everywhere where TChart is used in the codebase.
It would be much better to fix this problem in ONE place.
Also, an extra property would not break old code/behavior.
I understand.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |