Page 1 of 1

Form42 Example

Posted: Fri Feb 10, 2017 8:55 am
by 16880060
I don't find the Form42 Example (TeeGrid with TeeChart graphics attached on cells) where I can reach it?

Best Regards

Re: Form42 Example

Posted: Mon Feb 13, 2017 3:26 pm
by David
Hi oflor

Automatic embedded "live" charts inside grid cells is planned for next release (v1.5 maybe).

For static charts (just painted as bitmaps), I've uploaded a new example showing how to do it:

https://github.com/Steema/TeeGrid/tree/ ... c%20Charts

A column "OnPaint" event is used to paint the chart using the event "Bounds" rectangle.
A series is filled with the appropiate row values.

For "live" controls (charts, or any other), the list of future problems to solve are:

1) Where and how to keep the "array" of live control object instances (in the column? in user code?)
2) How to "cache" the objects? (should they be cached or not?, or re-created at every cell paint?)
3) How to "clip" partially visible controls? (VCL clip mechanism for children controls, but inside grid cell rectangles)

regards !
david

Re: Form42 Example

Posted: Thu Feb 16, 2017 5:27 am
by 16880060
Mr. David:

This way (OnPaint event) is acceptable to me.

Thanks very much for the example!

Best Regards