When using mapping mode - nodes draw in incorrect positions.
setMapMode (image.canvas.handle, MM_ANISOTROPIC);
setWindowExtEx (image.canvas.handle, 1, 1, nil);
setViewportExtEx (image.canvas.handle, 2, 2, nil);
treeview.paintTree (
image.canvas,
rect (0, 0, image.width, 100),
point (0, 0),
[poGridLines, poUnbuffered],
pfDevice
);