Board index » delphi » Repaint on Canvas / MapMode

Repaint on Canvas / MapMode

The problem:

I use a paintbox and draw on the canvas. Then I change the Map Mode to
HIMETRIC. But after a Paint-Message (e.g. PaintBox1.Repaint) the Map
Mode is set back to the former mode. Can anyone tell me why? Does the
Paintbox release its Device Context?

Thanks a lot in advance



Re:Repaint on Canvas / MapMode

Wolfgang -

To put it simply, "yes". You can never assume that the attributes of
your device context haven't been tweaked by somebody else, or just
reset to the defaults.

Good luck.


Other Threads