I'd like to create a window with some Reaction string gadgets, buttons, and a fuelgauge at the top, and draw into the rest of the window with Graphics library calls. eg, something like a spreadsheet with control gadgets, but the cells drawn rather than constructed with gadgets. It looks like the Reaction Space gadget is designed to be used for something like this, but I'm having trouble understanding how to use it that way. I can't simple use the window's RastPort with calls to IGraphics.Move(), Draw(), Text(), because it seems that even a "transparent" Space Gadget resides in a Layout that tends to backfill away anything there. Is there a way to stop any rendering into the area of the Space gadget? I can create a SPACE_RenderHook and render upon Update from Intuition and/or call RefreshGList() when I make a change to the sheet, but am not sure how to avoid having to redraw all of the sheet every time the hook is called - set up my own clip regions? The Space gadget example in the SDK does not do anything more than just display its area box values. Any suggestins or pointers appreciated. Thanks, Tom
Mon, 2012-12-24 04:53#1
Use of Space Gadget with Graphics Primitives?