I keep struggling with this one thing over and over.
I am making a small 256-colour game, and I want to use a custom palette, but I don't understand how I am to get my Delphi 3.0 form to apply it. All my bitmaps use exactly the same palette, and when I load them in an image box, they are drawn correctly. But when I copy them from a hidden TImage to a visible empty TImage or TPaintBox, the colours turn out in the standard Windows 16 colours.
I have tried typing the following in the paint event of my form, but to no avail:
SelectPalette(Handle, HiddenSource.Picture.Bitmap.Palette, False);
How do I get my own custom palette to be used all over the form?
Thanks in advance for any answer.