Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using TchartPro, How do I turn-off the 3d feature in the chart?

Posted on 2004-09-27
5
Medium Priority
?
304 Views
Last Modified: 2010-04-04
I am using Tchart Pro v6.01 with Delphi 7.  I have an application where I display measurement data in a chart using a point series.  The graph, legend, etc look and work great.  I've implemented scrolling and zooming.  What I am getting that I do NOT want is: the chart converts to 3-d when I right-click the mouse.  I wouldn't mind so much that it converts to 3-d but I can't undo it.  Once it displays in 3-d, I don't know what I use to get it to go back to 2-d.  When using edit chart, I go to chart tab|3d tab and uncheck '3 dimensions'.  Also, on Chart tab|Axis tab|Scales tab the visible check box is unchecked when the Depth Axis is selected.  I'm not sure what else to do to suppress the 3d feature.  Any suggestions?
Patti
0
Comment
Question by:PattiGaultney
  • 4
5 Comments
 
LVL 11

Expert Comment

by:calinutz
ID: 12166805
Try this:

procedure TForm1.Chart1MouseUp(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then ShowMessage('acuma');
Chart1.View3D:=false;
end;
0
 
LVL 11

Expert Comment

by:calinutz
ID: 12166807
sorry
it's like this:

...
begin
if button=mbRight then Chart1.View3D:=false;
end;
0
 
LVL 11

Expert Comment

by:calinutz
ID: 12166870
Or try on another event cause it seems that on Rightclick it does not react good.
Try onDblClick
DBChart1.View3d:=not DBChart1.View3D;

This one transforms from 3d to flat and from flat to 3d
0
 
LVL 11

Accepted Solution

by:
calinutz earned 1000 total points
ID: 12166898
Actually it works with both events. My mistake.
 So you can do it like this finally:

procedure TForm1.DBChart1MouseUp(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
if button=mbRight then DBChart1.View3D:=false;
end;

and from now on if you rightclick on the chart it will turn to 2D (if it's 3D).
0
 

Author Comment

by:PattiGaultney
ID: 12172242
Thanks for the quick response.  It works perfectly.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question