[Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-23 Thread werner . pamler
 I am trying to create a line graph where the X axis is a zoomable 
 TDateTime value and I believe that I need to use a 
 DateTimeIntervalChartSource However, I cannot seem to work out how to add 
 values to it.

You don't have to. The DateTimeIntervalChartSource gets the values from the 
axis it is assigned to. Here's what you have to do:

* Set up your chart as usual
* Add a TDateTimeIntervalChartSource. If you want to have the date/times along 
  the x axis select Chart.BottomAxis.Marks.Source to point to it. Also, set 
  Chart.BottomAxis.Marks.Style to smsLabel. In general, use the axis at which 
  you want to have the date/times.
* You may want to play with its properties a bit to optimize its output. For 
  example increase Intervals.MinLength and/or MaxLength to avoid overlapping 
  of labels.
* To be honest I don't fully understand the effect of the Steps property. I 
have the
  feeling that you have to turn off those options which you don't want to have 
  in the labels.


---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! 
Rundum glücklich mit freenetMail
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Crash (SIGABRT) with TDateEdit

2014-09-23 Thread Alexsander Rosa
http://bugs.freepascal.org/view.php?id=26766

1) Create an New empty app
2) Put a TDateEdit on it
3) Run it (that's it)
4) Maximize the form
5) Click the button to activate the calendar popup
CRASH


-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Crash (SIGABRT) with TDateEdit

2014-09-23 Thread Giuliano Colla


Il 23/09/2014 22:16, Alexsander Rosa ha scritto:

http://bugs.freepascal.org/view.php?id=26766

1) Create an New empty app
2) Put a TDateEdit on it
3) Run it (that's it)
4) Maximize the form
5) Click the button to activate the calendar popup
CRASH




Here the same happens with 1.2.2 and both GTK2 and Qt.

But in 1.3 (trunk) works just fine. No crashes (neither GTK2 nor Qt).

Giuliano



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Crash (SIGABRT) with TDateEdit

2014-09-23 Thread Bart
On 9/23/14, Alexsander Rosa alexsander.r...@gmail.com wrote:
 http://bugs.freepascal.org/view.php?id=26766

Already fixed in trunk (r46115).
It will be merged into next fixes release.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-23 Thread Richard Mace



 * You may want to play with its properties a bit to optimize its output.
 For
 example increase Intervals.MinLength and/or MaxLength to avoid overlapping
 of labels.
 * To be honest I don't fully understand the effect of the Steps property.
 I have the
 feeling that you have to turn off those options which you don't want to
 have
 in the labels.


​Thanks very much Werner, that was a great help.
Where can I find the Intervals.Min and MaxLength properties?

Richard​
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-23 Thread Werner Pamler

Where can I find the Intervals.Min and MaxLength properties?


MinLength and MaxLength are sub-properties of the Params of the 
DateTimeIntervalChartSource.
Sorry, I confused it with the property Intervals of the Axis...


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - Group bands

2014-09-23 Thread Alejandro Gonzalo
I only wanted a list of unique entries for a key field.  So I selected the 
Group Header band and for Condition selected that key field.  I then inserted a 
Rectangular Object on the band and for dbfField selected the same key field.

But Preview showed only a blank page.  What else do I have to do?

Double karma for the best way to show the number of entries for each key field.

Thanks.


A. G.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus