Recent

Author Topic: TBarchart not found  (Read 3445 times)

dietmar

  • Full Member
  • ***
  • Posts: 170
TBarchart not found
« on: June 26, 2017, 08:48:17 pm »
Hello,

I am searching for the component "TBarchart" which seems to be needed by an example I try to compile:
unit1.pas(29,3) Fatal: Cannot find TBarchart used by unit1 of the Project Inspector.

Google etc. were not helpful.

Thanks!
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

wp

  • Hero Member
  • *****
  • Posts: 11922
Re: TBarchart not found
« Reply #1 on: June 26, 2017, 09:01:01 pm »
TBarChart has been removed from the LCL about 3 years ago. Use TAChart as a replacement. See the tutorials http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_BarSeries and http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Stacked_BarSeries

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: TBarchart not found
« Reply #2 on: June 26, 2017, 09:43:56 pm »
Yes, I found TAChart in lazarus\components, and now I am stumblin over the following error:
unit1.pas(28,3) Fatal: Cannot find TAChart used by unit1 of the Project Inspector.

*args*

Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

wp

  • Hero Member
  • *****
  • Posts: 11922
Re: TBarchart not found
« Reply #3 on: June 26, 2017, 10:01:05 pm »
Is TAChart installed? Do you have a component palette "Chart"? Open "Package" > "Install/uninstall packages". Do you find TAChartLazarusPackage in the left list, or in the right list? If it is in the right list, select it, "Install selection", "Save and rebuild IDE". It will take some time until the IDE is recompiled. Then Lazarus starts, and you'll find the TAChart components in the palette "Chart".

Is this one of the demo programs which gives you the problem? Which one?

Create a new projekt. Drop a TChart component onto the empty form. Compile. This must work! If not, you should reinstall Lazarus, something is broken severely.

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: TBarchart not found
« Reply #4 on: June 26, 2017, 11:23:58 pm »
Now what I did:

* deinstall Lazarus
* install Lazarus fresh
* install component TAChart from \lazarus\components\tachart

Then I startet Lazarus, the "Chart"-Tab is also there and seems to be working.
Now I tried to compile the Example of
https://sourceforge.net/projects/lazarus-ccr/files/RingChart%20and%20AnalogWatch/
("ringwatch")

Now I am getting a new error:
"Unable to find the component class TBarChart".
 It is not registered via RegisterClass and no lfm was found.
 It is needed by unit: Unit1"

And also the error message "unit1.pas(28,70) Fatal: Cannot find TAChart used by unit1 of the Project Inspector."
:(

Dietmar
 
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

wp

  • Hero Member
  • *****
  • Posts: 11922
Re: TBarchart not found
« Reply #5 on: June 27, 2017, 12:29:04 am »
RingWatch is not an example for TAChart, it is something else and has its own components. It indeed seems to use TBarChart which I found in the sources of Lazarus 1.2. But I did not find the unit Chart - it does not belong to TAChart because it would have a "TA" prefix in its name.

So I cannot help you. But maybe we can find something else. What do you need the RingWatch components for?

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: TBarchart not found
« Reply #6 on: June 27, 2017, 06:58:14 pm »
I wanted to create a nice analog clock app...

Thx for help!

Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

wp

  • Hero Member
  • *****
  • Posts: 11922
Re: TBarchart not found
« Reply #7 on: June 27, 2017, 07:10:47 pm »
I wanted to create a nice analog clock app...

Thx for help!

Dietmar
Another analog clock is found in the TvPlanIt package: http://wiki.freepascal.org/Turbopower_Visual_PlanIt#TVpClock. Download link at the top the article.

dietmar

  • Full Member
  • ***
  • Posts: 170
Re: TBarchart not found
« Reply #8 on: June 27, 2017, 07:45:29 pm »
Thx a lot!

Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

 

TinyPortal © 2005-2018