Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

808 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