# Lazarus

## Programming => Graphics and Multimedia => TAChart => Topic started by: Arctic_Eddie on February 03, 2015, 07:59:15 pm

Post by: Arctic_Eddie on February 03, 2015, 07:59:15 pm
I'm trying to write a program to analyze and display Yagi antennas radiation patterns. The GUI needs a polar graph with dB rings, angle lines, and two radiation patterns. My problem so far is stopping the end of a series from connecting to it's beginning. The property, CloseCircle, is supposed to solve this problem. However, I can't find it in TChart or any of the objects under it in the IDE nor the drop downs when entering the code. Where is it hidden or do I even have it in the version of Lazarus, V1.0.8.
Post by: GetMem on February 03, 2015, 08:31:18 pm
http://wiki.freepascal.org/TAChart_documentation#Polar_series
2.4.2 Polar series --> "If CloseCircle = true, the last point is connected with the first one. "
Post by: Arctic_Eddie on February 03, 2015, 09:28:37 pm
I found that comment in several places but the property can't be found or doesn't exist. In what component is it located?
Post by: GetMem on February 03, 2015, 09:33:13 pm
Drop a TChart to your form, right click it-->edit series-->add-->polar series-->second property(Object inspector)
Post by: wp on February 03, 2015, 09:46:38 pm
You find the property CloseCircle in the ObjectInspector after you clicked on the PolarSeries in the ObjectTree. It was introduced in Aug 2012, so maybe your Lazarus version is too old if you don't see it. Anyway, I'd strongly recommend to update your Lazarus, we're close to the introduction of version 1.4, and there were a LOT new features and bugs fixed during these three years.

However, you should be aware that beyond TPolarSeries, polar charts are not very well supported by TAChart. In particular you'll have to do the painting of the circular coordinate system by yourself. Please see the attached demo to get the basic idea.
Post by: Arctic_Eddie on February 03, 2015, 10:18:23 pm
My version is dated 3/17/2013 but was updated several times. The original and the components were another year older. That's probably why the property is not found.

I'll update to the latest. Will my additional packages still be intact? I have several rather strange ones, ciphers, hashes, and 5dpo game joysticks, and don't want to do that all over again.
Post by: wp on February 04, 2015, 01:44:49 am
Quote
I'll update to the latest. Will my additional packages still be intact?
I think so, but you could just try with a secondary installation: install into a different folder than the old version. And add a file "lazarus.cfg" to the directory which contains lazarus.exe; this file should contain the line
Code: [Select]
--primary-config-path=C:\path\to\second\installation(or check the "secondary installation" box during installtion). Then you have both versions. And when everything is working you can delete the old one.
Post by: Arctic_Eddie on February 04, 2015, 01:52:30 am
Thanks for the help. Will do it tomorrow and post the results.
Post by: Arctic_Eddie on February 04, 2015, 03:33:28 pm
The problem is now solved. The CloseCircle property was missing because my installation occurred before that feature was added. The upgrade to V1.2.6 fixed the problem. However, another one appeared the first time I started the IDE. An error message shows that the make.exe file could not be found. There is one in the 2.6.4 folder while the old version had one in the 2.6.2 folder.

How do I tell it to look in the new location?

I followed this procedure to do the upgrade. First, copy the entire Lazarus folder to a new location. Next, create a system restore point. And finally, install the new version and let it remove the old one but not reset user parameters, I was afraid of losing too much, my extra packages.

If the upgrade had failed then I could restore to my old point and copy the saved folder back into it's original location. However, that was not necessary in this case.
Post by: wp on February 04, 2015, 03:47:03 pm
Quote
How do I tell it to look in the new location?

In "Tools" / "Options" / "Environment" / "Files" there is an edit for the location of make.exe.
Post by: Arctic_Eddie on February 04, 2015, 04:03:27 pm
Found, fixed, and ready to roll. However, I did lose all my extra packages. Will reinstall them as needed. My present project is intact so I can proceed.

Thanks for you help. Much appreciated.

PS
Oops, the packages do show up in the Open Loaded Packages list but are not visible in the IDE. I assume that they just need to be selected from the list and reinstalled.
Post by: wp on February 04, 2015, 04:32:33 pm
Quote
Oops, the packages do show up in the Open Loaded Packages list but are not visible in the IDE. I assume that they just need to be selected from the list and reinstalled.
If you had kept your former user settings you just have to recompile Lazarus to get the components back to the component palette.