@Capehill
Quote:
I'm currently just blitting over the render box area, it seems to work.
Technically, you can blit over any Intuition gadget (after all it's just an area in a window's rastport) - yet it's not what you do.
In BOOPSI the idea is that the gadget imagery is rendered by the gadget itself (rather than by the application), upon receiving a GM_RENDER message from Intuition. The space.gadget is different in that it provides a way for the application to supply its own GM_RENDER code (via a custom render hook function) to take care of the gadget imagery.
So I'd recommend that you use SPACE_RenderHook to install your hook function, and do the blitting there. This way you can be sure that the gadget rendering will be performed at the right time. You won't have to check for window resizing because your render hook function will be invoked automatically every time Intuition detects a resize. Also, the render hook function will provide you with the valid rastport pointer to use for the blitting.
If you need an example just send me a PM.