Search found 92 matches

by moelski
Tue May 19, 2009 11:05 am
Forum: VCL
Topic: Next VCL Release
Replies: 9
Views: 12561

Hi !
I expect this to be ready during May.
Any news about 8.05 ?
by moelski
Fri May 15, 2009 11:14 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray,

now I reinstalled TChart completely.
All works fine now. No more Range errors.

Anyway. Thx for your excelent help :)
by moelski
Fri May 15, 2009 10:16 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, I found this generic solution: SerieCopy := tmpChart[Serie]; // Farbe merken SeriesColor := tmpChart[Serie].Color; if IsPublishedProp(TCustomLineSeries(tmpChart[Serie]).LinePen, 'Color') then begin SeriesLineColor := GetOrdProp(TCustomLineSeries(tmpChart[Serie]).LinePen, 'Color') ; end; Se...
by moelski
Fri May 15, 2009 8:52 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, SeriesColor := tmpChart[1].Color; SeriesCopy.Color := clNone; SeriesCopy.Color := SeriesColor; Well this will work for some series types but not with all. If you use TFastLine you need this code: SeriesColor := (tmpChart[Serie] as TFastLineSeries).LinePen.color; (SerieCopy as TFastLineSeri...
by moelski
Fri May 15, 2009 7:38 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, today I did some new tests. I always get the error if ... - Rangecheck is enabled - use Project -> Create Project to compile the whole application complete (in german it´s called xxxx erzeugen - Shortcut is SHIFT + F9) - Start the project and press the Copy Button -> Error. My Chart has on...
by moelski
Thu May 14, 2009 1:48 pm
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, really strange. I got an error as soon as I enable RangeCheck. I tried your solution with setting the TmpChart to NIL. It works, but the color changes after setting the ParentChart to TargetChart. Is there any automatically mechanism to change the color if a new series is added? Can I swit...
by moelski
Thu May 14, 2009 12:02 pm
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray,

did you enable the RangeCheck in the Compiler Options?
If I deselect the rangecheck all works fine. With RangeCheck I got the error.
by moelski
Thu May 14, 2009 11:37 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

I hope the demo has 5 series included (on the left chart).

I have the following series included (in the SourceChart):
- Fast Line
- Area
- Volume
- Error Bar
- Bar 3D

And the Area Series holds some sample values after the application starts.
by moelski
Thu May 14, 2009 11:31 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray,

as soon as I press the "Copy ->" Button I got the error (EListError) in TeEngine (Function TChartSeries.GetValueColor(ValueIndex:Integer):TColor;)

I used Delphi 2007 with TChart 8.04.
by moelski
Thu May 14, 2009 10:53 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray,

sorry for that.

New upload:
Received Copy Object RTTI.zip Content Type application/x-zip-compressed Length 18798
by moelski
Thu May 14, 2009 10:25 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, tested it with some FastLine series and it works. But please see the sample. I got an error: Received Copy Object RTTI.zip Content Type application/x-zip-compressed Length 13381 Erste Gelegenheit für Exception bei $7C812AFB. Exception-Klasse EListError mit Meldung 'Listenindex überschreite...
by moelski
Thu May 14, 2009 6:40 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, well I could solve one issue :D I can copy the settings using RTTI. This code works well: procedure CopyObject(ObjFrom, ObjTo: TObject); var PropInfos: PPropList; PropInfo: PPropInfo; Count, Loop: Integer; OrdVal: Longint; StrVal: String; FloatVal: Extended; MethodVal: TMethod; begin { Ite...
by moelski
Wed May 13, 2009 12:32 pm
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, to avoid this, you could not to delete your tmpEmpty chart until the exit of your application That´s not a good solution ... Or a little bit more tricky, you could use another stream to save the final chart before freeing the tmpEmpty chart Well that are a lot of Save and Load operations ....
by moelski
Wed May 13, 2009 10:31 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi Yeray, Serie := StrToInt(Copy(Serien, 1, pos('#', Serien) - 1)); Serien := Copy(Serien, Pos('#', Serien) + 1, length(Serien)); Serien ist just a string which contains series indexes. For example: 0#3# Serie is the first number of this string - in this case 0. I use this number to select the corre...
by moelski
Wed May 13, 2009 8:35 am
Forum: VCL
Topic: Clone Series from a TmpChart ?
Replies: 26
Views: 36861

Hi !

Can anyone help me with this case ?