An alternate image may be supplied as highlighting for gadgets that use image rendering, similarly an alternate border may be supplied for gadgets that use border rendering. When the gadget is active or selected, the alternate image or border is displayed in place of the default image or border. For this highlighting method, set the selectrender field of the gadget structure to point to the image structure or border structure for the alternate display. Specify that highlighting is to be done with alternate imagery by setting the gflg_gadghimage flag in the flags field of the gadget structure. when using GFLG_GADGHIMAGE, remember to set the gflg_gadgimage flag for images, clear it for borders. When using alternate images and borders for highlighting, gadgets rendered with images must highlight with another image and gadgets rendered with borders must highlight with another border. For information about how to create an image or border structure, see the chapter "intuition images, Line Drawing, and Text."