Solved

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

Posted on 2004-09-27
5
290 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
[X]
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
  • 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: 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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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