Re: [Lazarus] TAChart CandleStick Chart

2014-09-17 Thread Leonardo M. Ramé

El 16/09/14 a las 16:09, Werner Pamler escibió:

In r46244 the TOpenHighLowCloseSeries has a new property Mode:
selection mOHLC does the standard painting as before while
mChandleStick paints the candlesticks that you requested. Since your
code was mostly a copy of existing code I decided to stick to the old
series type, but just add the painting modes. There are also properties
CandleStickUpBrush, CandleStickDownBrush and CandleStickLinePen to
control painting of the up and down bars and the border and shadow line.
I also added a little demo financial to the demo folder of the
TAChart installation which demonstrates both modes. It would be nice if
you could have a look if everything is fine - I'm not an expert in
financial charts.

I also fixed the bug which ignored the true minimum of the data -
therefore, it is no longer necessary to calculate the minimum by
yourself, just have a look at the code in the demo project. And,
finally, I modified the AddXOHLC method such that it automatically
initializes the size of the YCount of the chart source if the current
size would not be enough.




Great!, I'll take a look later today.

--
Leonardo M. Ramé
Medical IT - Griensu S.A.
Av. Colón 636 - Piso 8 Of. A
X5000EPT -- Córdoba
Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19
Cel.: +54 9 (011) 40871877


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


Re: [Lazarus] PostMessage return value

2014-09-17 Thread Graeme Geldenhuys
On 2014-09-16 12:44, Michael Schnell wrote:
 I did a draft of a TThreadPool class.
 
 Most of it works (creating assigning and re-assigning tasks works, 
 stopping the thing still produces an exception).


I haven't followed this whole thread, but I can add that the tiOPF
project (on SourceForge) has had a threadpool class for many years. Well
unit tested too.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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