Form42 Example

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
oflor
Newbie
Newbie
Posts: 4
Joined: Mon Feb 06, 2017 12:00 am

Form42 Example

Post by oflor » Fri Feb 10, 2017 8:55 am

I don't find the Form42 Example (TeeGrid with TeeChart graphics attached on cells) where I can reach it?

Best Regards

David Berneda
Site Admin
Site Admin
Posts: 81
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Re: Form42 Example

Post by David Berneda » Mon Feb 13, 2017 3:26 pm

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

oflor
Newbie
Newbie
Posts: 4
Joined: Mon Feb 06, 2017 12:00 am

Re: Form42 Example

Post by oflor » Thu Feb 16, 2017 5:27 am

Mr. David:

This way (OnPaint event) is acceptable to me.

Thanks very much for the example!

Best Regards

Post Reply