Hi all,
I'm starting to program visual components for use in delphi and i've run into a small problem. From what i understand, when drawing the graphics for a control, i should render the graphics on an off-screen bitmap then copy the result to the on-screen control.
my question is, where do i create the off screen bitmap?
my first thought was to create the temp bitmap in the components constructor, but at that stage the components size still has not been set. i then tried to override the width and height properties so that i could change the size of my bitmap when width and height were changed, but that didn't seem to work at all. Is it possible to override a property declared in a components base class?
should the temp bitmap be created at the beginning of the Paint procedure?
cheers,
vam