Being new to Delphi, I am on a steep learning curve, and I want to round off this thread with what I have learnt.
- Do not use a class derived from TImage for this purpose. TImage is meant to display pictures, and has a Paint method that automatically executes when the picture is changed, as for...
Steve,
Thanks a lot. Including the inherited Paint did the trick.
Using Stretch is no solution, because I want the lines to stay 1 pixel wide no matter how big the graph becomes.
Bjorn
I try to write a component based on TImage, and use a background bitmap for drawing. I cannot get the drawing to be the same size as the image control, it remains about 100x100 pixels even if the control is much bigger when I place it on the form.
Here is my code. I have removed everything not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.