Code cleaning and using DrawPanel->Refresh() instead of ReDraw() when possible.
Attach a file by drag & drop or click to upload