Search found 150 matches

by bertrod
Tue Jan 08, 2008 3:21 pm
Forum: VCL
Topic: [Solved] Force position of vertical scrollbar ?
Replies: 3
Views: 12261

To solve this problem, I would need a function like TTreeNode.MakeVisible() which doesn't exist in TeeTree (as TTreeNodeShape don't inherit from TTreeNode).

Still no support about this problem ?
by bertrod
Mon Jan 07, 2008 8:01 am
Forum: VCL
Topic: Panning with Log Axes can bring negative values
Replies: 3
Views: 7444

Excellent idea, I had never used the OnAllowScroll event and didn't think about it.

Works fine, thanks.

Although I still think adding a test in TChartAxis class to avoid logarithmic < 0 would not be a too bad idea :wink:
by bertrod
Fri Jan 04, 2008 4:09 pm
Forum: VCL
Topic: Panning with Log Axes can bring negative values
Replies: 3
Views: 7444

Panning with Log Axes can bring negative values

Hello, If you have an axis with Logarithmic = true and the panning tool activated, you can scroll the chart until the logarithmic axis has negative min and max. The negative values are not displayed, but this causes some strange behaviour with the labels. I guess a test should be made in class TChar...
by bertrod
Thu Nov 22, 2007 1:58 pm
Forum: VCL
Topic: [Solved] Force position of vertical scrollbar ?
Replies: 3
Views: 12261

[Solved] Force position of vertical scrollbar ?

Hello,

Is it possible to force the position of the vertical scrollbar ? Sometimes i must build again all my treeview, and i would like to show the treeview at the same position as before it has been rebuilt. :?:
by bertrod
Thu Nov 15, 2007 10:01 am
Forum: VCL
Topic: [TSeriesBandTool] How to know when X,Y is in seriesBandTool?
Replies: 2
Views: 6187

Great, it works well, thanks.
by bertrod
Wed Nov 14, 2007 9:58 am
Forum: VCL
Topic: assigning series to customaxis at runtime
Replies: 3
Views: 7495

Why you don't use

Code: Select all

ca := THorizAxis.Create(Chart1); 
?

I think creating a TChartAxis creates a vertical axis, and then you cannot assign it as a horizontal axis.
by bertrod
Wed Nov 14, 2007 9:36 am
Forum: VCL
Topic: [TSeriesBandTool] How to know when X,Y is in seriesBandTool?
Replies: 2
Views: 6187

[TSeriesBandTool] How to know when X,Y is in seriesBandTool?

Hello,

Is there a easy and quick way to know if a coordinate X,Y (chart pixels) are inside a TSeriesBandTool area ?
by bertrod
Mon Nov 12, 2007 8:04 am
Forum: VCL
Topic: Print in Grayscale
Replies: 9
Views: 16983

Ok, well yes it does work, but the quality of the bitmap is far not as good as the MetaFile when stretched, zoomed, etc. I'll try to see if I can improve it.
by bertrod
Mon Nov 12, 2007 7:51 am
Forum: VCL
Topic: Print in Grayscale
Replies: 9
Views: 16983

Hi johnnix,

I don't see the point in your solution. The Metachart is still in color and bit is never used :?:
by bertrod
Thu Nov 08, 2007 1:18 pm
Forum: VCL
Topic: Print in Grayscale
Replies: 9
Views: 16983

Hi Pep, Thanks for the answer but your solution doesn't work. I'm using the filter right before creating the Metafile, and then I'm using it to print, but the chart is still not in grayscale. TeeGrayScale((Chart.Canvas as TTeeCanvas3D).Bitamp, true, 0) ; MetaChart := Chart.TeeCreateMetaFile(True, Ch...
by bertrod
Wed Oct 31, 2007 1:02 pm
Forum: VCL
Topic: Print in Grayscale
Replies: 9
Views: 16983

Hi Narcis, Ok but my problem is that Monochrome is different than Grayscale : chart.monochrome looks different than teeGrayscale(), and moreover i'm also using the reverted grayscale (white becomes black, etc.). Seeing your answer, I should understand that you did not yet implement the printing in t...
by bertrod
Wed Oct 31, 2007 12:18 pm
Forum: VCL
Topic: Print in Grayscale
Replies: 9
Views: 16983

Print in Grayscale

Hello,

I'm using the feature TeeGrayScale() in the afterDraw method, but I can't use it also to pring the chart in grayscale. Is it possible ? Thanks
by bertrod
Thu Oct 18, 2007 8:26 am
Forum: VCL
Topic: [Solved] [v8] Bug with TAxisScrollTool
Replies: 3
Views: 6438

Hi Narcis, The exe you sent me worked fine. After some time, I finally could solve my problem with the AxisScrollTool. I don't know if it can help you in any way, but here is my modification to solve this problem: File : TeeTools.pas Function : TAxisScrollTool.ChartMouseEvent SubFunction : AxisClick...
by bertrod
Thu Aug 30, 2007 10:54 am
Forum: VCL
Topic: [Solved] [v8] Bug with TAxisScrollTool
Replies: 3
Views: 6438

[Solved] [v8] Bug with TAxisScrollTool

Hello, I found a problem with the TAxisScrollTool which I think occurs only with Version 8. When I'm scrolling an Axis using this tool, everything works fine except when the cursor is exactly over the axis line ! This behaviour looks strange and I think it is a bug. To reproduce it, simply scroll th...
by bertrod
Tue Aug 28, 2007 6:46 am
Forum: VCL
Topic: [SOLVED] Series OnClick Event Help needed
Replies: 6
Views: 12022

I don't know if it's the best answer, but you can try this : value : real ; i, index : integer ; value := Chart.BottomAxis.CalcPosPoint(X) ; //find the value of the clicked point for i := 0 to Series.count-1 do if Series.XValues[i] >= value then begin index := i ; //find the index in the series brea...