Search found 15 matches
- Mon Dec 20, 2010 7:58 pm
- Forum: VCL
- Topic: Problem with TeeCreateBitmap when there is A/V
- Replies: 7
- Views: 10513
Re: Problem with TeeCreateBitmap when there is A/V
Hello, In your sample code, you check for tmp<>nil then call tmp.Free. The tmp<>nil check is not necessary. You can call .Free on a nil object. Second, your workaround simply will not work. Just because tmp=nil does not mean the bitmap was not leaked. our code is even simpler than your worklaround r...
- Fri Dec 17, 2010 3:08 pm
- Forum: VCL
- Topic: Problem with TeeCreateBitmap when there is A/V
- Replies: 7
- Views: 10513
Re: Problem with TeeCreateBitmap when there is A/V
Yes I did. But really any size that is too big will do it.
But that is just an example of an easy way to reproduce it. ANY Exception that happens to be raised inside TeeCreateBitmap will do this.
But that is just an example of an easy way to reproduce it. ANY Exception that happens to be raised inside TeeCreateBitmap will do this.
- Fri Dec 17, 2010 7:53 am
- Forum: VCL
- Topic: Problem with TeeCreateBitmap when there is A/V
- Replies: 7
- Views: 10513
Re: Problem with TeeCreateBitmap when there is A/V
Hello Yeray.... I am talking about the one with several. I was working from memory so messed it up. if you do try tmp:=chart1.TeeCreateBitmap(clRed,Rect(0,0,100000,00000)) finally tmp.Free end; you will not really free the bitmap. That is because TeeCreateBitmap will raise an exception and not retur...
- Wed Dec 15, 2010 6:03 am
- Forum: VCL
- Topic: Problem with TeeCreateBitmap when there is A/V
- Replies: 7
- Views: 10513
Problem with TeeCreateBitmap when there is A/V
Hello, In TeeCreateMetafile you create the bitmap and assign to the result on the first line. Then do a bunch of stuff, including setting the size of the bitmap. Problem is if there is an exception (lets say setting the size too big) you will always leak a bitmap because the result of the function i...
- Fri Sep 17, 2010 5:52 am
- Forum: VCL
- Topic: Problem with Fast Line Series in 3D
- Replies: 1
- Views: 4363
Problem with Fast Line Series in 3D
Hello, As you can see in the attached project, there is a problem with FastLineSeries in 3D if you set the Axis to not start at the minimum of the data. The problem does not exist with TLineSeries. In the image below - top section- you can see that if you start at the minimum of the data, in 3D, bot...
- Fri Sep 17, 2010 5:47 am
- Forum: VCL
- Topic: Don't place labels on every major tick
- Replies: 3
- Views: 6236
Re: Don't place labels on every major tick
There are several events where you can have fine grained control on the axis labels.
Look in the help for OnGetNextAxisLabel, OnGetAxisLabel
Look in the help for OnGetNextAxisLabel, OnGetAxisLabel
- Fri May 07, 2010 2:27 pm
- Forum: VCL
- Topic: TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
- Replies: 9
- Views: 14406
Re: TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
Hello, They absolutely do help, because it fixed my problem :-) I am just wondering if that could cause other problems. To reproduce, I would just set up a chart where the # of pixels of the axis is not equally divisible by the axis range. You have to find a size where the start pixel returns a valu...
- Tue May 04, 2010 3:16 pm
- Forum: VCL
- Topic: TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
- Replies: 9
- Views: 14406
Re: TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
Its very difficult to reproduce, as teh chart has to be exactly the correct size that when rounding from pixel coordinate back to real value in Axis.AdjustMaxMinRect.RecalcAdjustedMinMax that the IMinimum becomes slightly greater than FMinimum, then try to pass FMinimum back in OnGetNextAxisLabel as...
- Fri Apr 30, 2010 5:09 pm
- Forum: VCL
- Topic: TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
- Replies: 9
- Views: 14406
TeEngine.InternalDraw.ApplyMaxMinOffsets in conjuction with
In ApplyMaxMinOffsets, you calculate tmpR to see whether to adjust the axis.IMInimum and IMaximum. In our case, tmpR is always (0,0,0,0). The problem with that is that you are calling Axis.AdjustMaxMinRect(0,0,0,0), probably assuming it will not do anything. But it does. In my case, before this meth...
- Wed Apr 21, 2010 5:54 pm
- Forum: VCL
- Topic: problem with TErrorSeries
- Replies: 8
- Views: 14019
Re: problem with TErrorSeries
Hello, To be cleared, I cannot "forget" about the TPointSeries. Each Point+Error bar represents a mean +SD of a particular measurement. The error bar ALWAYS has to be on top of its corresponding point, no matter how far the points/error bars are away from each other. If the points or error bars are ...
- Wed Apr 21, 2010 5:51 pm
- Forum: VCL
- Topic: problem with TErrorSeries
- Replies: 8
- Views: 14019
Re: problem with TErrorSeries
Hello, Thank you. I definately want them to "overlap", because, they are not really overlapping. Even though the X values are the same, the Y values are totally different. I can see this auto-adjusting to eliminate X-overlap can be a useful feature, but should not be the default behaviour. In AddErr...
- Wed Apr 21, 2010 3:28 pm
- Forum: VCL
- Topic: problem with TErrorSeries
- Replies: 8
- Views: 14019
Re: problem with TErrorSeries
Hi Yeray, I am afraid I do not understand. I would kindly ask that you look at the sample application that I sent you. In that application, I create 2 unique error series. The error series have the same x values as each other, but different Y values. They are also the same X,Y values as the point se...
- Tue Apr 20, 2010 9:30 pm
- Forum: VCL
- Topic: problem with TErrorSeries
- Replies: 8
- Views: 14019
problem with TErrorSeries
Hello, I am creating a TPointSeries and TErrorSeries to show error bars on top of a point series. I create the X,Y coordinates of each one the same, and just give the error bar a value for the bar height. This works fine if I have just one point series and one errorSeries. However, If I have two poi...
- Tue Feb 23, 2010 11:27 am
- Forum: VCL
- Topic: THighLowSeries with Gradient
- Replies: 1
- Views: 4042
THighLowSeries with Gradient
Hello, I just noticed that you can fill the area between the high and low lines in a THighLow series. But it seems you can only fill it with a solid color. Is it possible to fill it with a gradient, such that the middle between the high-low is the darkest and as it approaches the high or the low it ...
- Tue Jan 19, 2010 10:01 pm
- Forum: VCL
- Topic: chartrect does not autosize based on custom axis label
- Replies: 6
- Views: 13340
chartrect does not autosize based on custom axis label
Hello, If you have a chart that has a label on a customAxis, it seems that the chartrect does not resize based on whether the label is visible or not, or what the text of the axis title. If I use the exact same chart, but link the series to one of the default axes, then the chartrect resizes automat...