Solved

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

Posted on 2004-09-27
5
284 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 250 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now