TChart disabled on 64Bit iOS platform

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

TChart disabled on 64Bit iOS platform

Post by X-Ray » Fri Jun 12, 2015 12:04 pm

Hello,

after installation of the latest TeeChart FMX from souces, via the TeeRecompile.exe TChart is diabled for the 64Bit iOS platform.
TeeChartDisabled.png
teeChart disabled for 64Bit iOS platform
TeeChartDisabled.png (14.55 KiB) Viewed 34516 times
Is that done on purpose, because there are problems ?

best regards and thanks

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Fri Jun 12, 2015 1:29 pm

Hello X-Ray,

If your application targets an iOS 64-bit device, TChart is still available there and builds correctly. You need an iOS 64-bit device to run it though. Did TeeRecompile run fine for iOS 64-bit device? Does this work for you?
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Fri Jun 12, 2015 1:51 pm

I have an iPhone 6 and other components are enabled for the 64Bit iOS platform.
Also the TeeRecompile did run fine for the 64Bit iOS platform.
There is actually more trouble, that is why I am asking. I also have a multi device application that contains a TChart and that now crashes on startup when compiled for 64Bit iOS. I could somehow connect the crash to TChart. Finally I was able to create an iOS 64bit app that just contains a design time TChart and nothing else and that crashes too on startup. I have attached the small project.
TChartTest.zip
iOS project where 64Bit executable crashes on startup
(10.17 KiB) Downloaded 1475 times
best regards

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Fri Jun 12, 2015 2:15 pm

Hi X-Ray,

Thanks for the info. I could reproduce the problem here and we will investigate it. We will get back to you when we have further news.
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

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Fri Jun 12, 2015 3:17 pm

Hi X-Ray,
X-Ray wrote: after installation of the latest TeeChart FMX from souces, via the TeeRecompile.exe TChart is diabled for the 64Bit iOS platform.
This has been fixed for the following maintenance release.
X-Ray wrote: There is actually more trouble, that is why I am asking. I also have a multi device application that contains a TChart and that now crashes on startup when compiled for 64Bit iOS. I could somehow connect the crash to TChart. Finally I was able to create an iOS 64bit app that just contains a design time TChart and nothing else and that crashes too on startup. I have attached the small project.
A simple design-time app works fine for us here. However, your app crashes and added the problem to bugzilla (bug #1238).
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Mon Jun 15, 2015 6:39 am

Hi Narcis,

I just created a new/fresh multi device application and put instances of a TChart, a TSurfaceSeries, a TColorGridSeries and a TTeeCommander on the empty form. When I try to run the 64-bit version on my iPhone6 it crashes too on startup. So this is a showstopper on iOS. Please let me know of any workaround to get this running.

best regards

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Mon Jun 15, 2015 8:15 am

Hello,

The problem is TeeCommander. Following the steps you mentioned without a TTeeCommander component works fine.
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Tue Jun 16, 2015 6:30 am

Hi Narcis,

yes indeed, now that I removed TeeCommander the 64-bit app starts up fine.
Do you have a quick example how to set the TChart in rotation or zoom mode by a button click without usage of the TeeCommander component ?

best regards

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Tue Jun 16, 2015 7:29 am

Hi X-Ray,

Yes, this can be done like this:

Code: Select all

procedure TForm1.RotateBtnClick(Sender: TObject);
begin
  Chart1.Aspect.Orthogonal:=False;
  Chart1.Aspect.Rotation:=15;
  Chart1.Aspect.Elevation:=300;
end;

procedure TForm1.ZoomBtnClick(Sender: TObject);
begin
  Chart1.Aspect.Zoom:=60;
end;
You could use slider controls to modify those values as well.
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Tue Jun 16, 2015 7:44 am

Hi Narcis,

But how do I set the Chart into the zoom or rotate mode, so that it can be zoomed or rotated by the touch and dragging with a finger ?
You are just setting the rotation angle and the zoom % by code in that example, right?

best regards,

Thomas

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Tue Jun 16, 2015 9:02 am

Hi Thomas,
X-Ray wrote: You are just setting the rotation angle and the zoom % by code in that example, right?
Yes, exactly.
X-Ray wrote: You are just setting the rotation angle and the zoom % by code in that example, right?
You should use the gesturing functionality in Delphi as explained in those articles:

http://docwiki.embarcadero.com/RADStudi ... g_Overview
http://docwiki.embarcadero.com/CodeExam ... s_(Delphi)

I'm also attaching a practical gestures example with TeeChart.
Attachments
OnGesture.zip
(58.94 KiB) Downloaded 1394 times
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Wed Jun 17, 2015 8:52 am

Hi Narcis,

Thank you, the Gestures example was very helpful !

best regards

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

Re: TChart disabled on 64Bit iOS platform

Post by Narcís » Fri Jun 19, 2015 2:55 pm

Hi X-Ray,

You're very welcome. I'm glad to hear that. It actually inspired a blog post about Delphi gestures with TeeChart.
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

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: TChart disabled on 64Bit iOS platform

Post by X-Ray » Tue Sep 08, 2015 9:47 am

Hello,

there are problems with axes titles in 3D that got worse with the latest release 2015.16:
Foto 08.09.15 11 36 51.png
Foto 08.09.15 11 36 51.png (131.62 KiB) Viewed 33759 times
I used the gesture example and added titles for the X-Axis (Bottom Axis), Y-Axis (Left Axis) and the Z-Axis (Depth Axis). What you see is (on a iPhone 6):

1) The titles are not aligned with the axis labels (This works well in the VCL version)
2) The distance between the axis labels and the axis title is too short (how can I change this ?)
3) The Z-Axis title has disappeared or is somewhere far away

Are there any fixes for this ?

best regards,

X-ray

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChart disabled on 64Bit iOS platform

Post by Yeray » Wed Sep 09, 2015 1:32 pm

Hello,
X-Ray wrote:there are problems with axes titles in 3D that got worse with the latest release 2015.16:
I've tried it with v2015.15 and v2015.16 in Android and it seems to give the same result. Could you please specify what two versions to compare?
X-Ray wrote:1) The titles are not aligned with the axis labels (This works well in the VCL version)
I get the same result with VCL:
vcl_surfa.png
vcl_surfa.png (49.96 KiB) Viewed 33729 times
X-Ray wrote:2) The distance between the axis labels and the axis title is too short (how can I change this ?)
I'm afraid this is not possible.
Instead, you could draw your title or text manually. Ie:

Code: Select all

procedure TForm1.Chart1BeforeDrawSeries(Sender: TObject);
var yOffset, tmpZ, tmpW: Integer;
    pos: TPointF;
    st: string;
begin
  yOffset:=10;

  with Chart1.Axes.Bottom do
  begin
    st:=Title.Caption;
    Chart1.Canvas.AssignFont(Title.Font);
    tmpW:=Chart1.Canvas.TextWidth(st);

    pos.X:=IStartPos + ((IEndPos-IStartPos) div 2);// - (tmpW div 2);
    pos.Y:=Round(Chart1.Axes.Left.IEndPos + Abs(LabelsFont.Size) + TickLength + 7);
    tmpZ:=Round(Chart1.Width3D * ZPosition * 0.01);
  end;

  pos:=Chart1.Canvas.Calculate3DPosition(pos,tmpZ);
  pos.Y:=pos.Y+yOffset;

  Chart1.Canvas.TextOut(pos.X, pos.Y, st);
end;
X-Ray wrote:3) The Z-Axis title has disappeared or is somewhere far away
The depth axis is not visible. It will appear if you make it visible:

Code: Select all

Chart1.Axes.Depth.Visible:=true;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply