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

Summary: [TJ71015949] //PROBLEM: // These all some out to 0 com.steema.teechart.Rectang...
Product: Java TeeChart Reporter: narcís calvet <narcis>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: marc
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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.