Adding to a component's canvas
Posted on 1998-04-27
I need a good abstarct way, hopefully off of TControl or TWinControl methods or props, that will allow me to make additions to the canvas of many components of unknown type at run time. EX: Adding a small red circle to the upper left corner of a textbox that will remain when the form is minimized and restored. If at all possible, I'd like to do this without redirecting WndProcs... I have, in fact, gotten to draw on the canvas of a textbox using a Canvas i have created and set the Handle of to a GetDC call on the control, but i can't get the image i draw on the control to persist.... all ideas are worth a shot on this one!