Occurs when the surface changes; in other words, when you paint the surface.
typedef void __fastcall (__closure* TGetMapEvent)(System::TObject* Sender, int Row, int Column, int &MapIndex);
__property TGetMapEvent OnPaint;
Description
Use OnGetMap to specify a 2D map. A map in Ivory Draw is a 2-dimensional array of small images. You can describe the map either in the Map property, or in the OnGetMap event. If both of them are specified, the surface reads the map from the Map property. Using the Map property is faster than using the OnGetMap event.
If you decide to use the OnGetMap event, the event occurs when the next tile of the map is need to be specified. The Row and Column parameters contain the row and column coordinates, respectively. MapIndex is a negative number by default, which means no tile is needed to be drawn. If you want to draw a tile in the given position, you need to specify the index of the tile. The images will be read from the Mapper component.