Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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