How can I create a component derived from TBitmap so that when I drop the component from the palette onto a form:
1. It has a bitmap the same size as the control (not streched).
2. The bitmap is filled in a single color (say clNavy).
3. A (clWhite) rectangle is drawn in the bitmap with size proportional to the bitmap.
4. It wil look EXACTLY the same at runtime as it does at design time.
What I'm looking for is what methods should I use, (Create, ReSize, etc)
and what code should go in the methods.
How do I create the bitmap? When do I create the bitmap? etc etc.