Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 439 - [TJ71015949] //PROBLEM: // These all some out to 0 com.steema.teechart.Rectang...
Summary: [TJ71015949] //PROBLEM: // These all some out to 0 com.steema.teechart.Rect...
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 11:28 EST by narcís calvet
Modified: 2016-04-12 05:07 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2013-11-20 12:16:43 EST
// These all some out to 0
 com.steema.teechart.Rectangle rc = tChart1.getChart().getChartRect();
 System.out.println("rect: (w,h):(" + rc.getWidth() + "," + rc.getHeight() + ")");
 System.out.println("rect: [l,r,t,b]:[" + rc.getLeft() + "," + rc.getRight() + "," + rc.getTop() + "," + rc.getBottom() + "]");
calling tChart1.invalidate() or tChart1.refreshControl() before doesn't help.
Same occurs with:
 Panel cp = tChart1.getPanel();
 System.out.println("panel: (w,h):(" + cp.getWidth() + "," + cp.getHeight() + ")");
 System.out.println("panel: [l,r,t,b]:[" + cp.getLeft() + "," + cp.getRight() + "," + cp.getTop() + "," + cp.getBottom() + "]");


 More information client give about this bug " I suspect it may be due to the fact that I am not using TeeChart in a GUI application. Also, I think some issues, like the chart rectangle color, are from using 2D mode (turning off 3D). For example, the wall color only works in 3D. Hope that info might help you." I have attached all the examples as client send me. [created:2011-12-07T11:28:58.000+01:00 reported by:narcis@steema.com reported in version:2.0 Alpha (TeeChart Java)]
Comment 1 marc meumann 2016-04-12 05:07:16 EDT
works correctly in pre-release version 12th April 2016. Use getChartRect.