XML/Types/Inset

Elements: AbsInset, RelInset

Attributes: left, right, top, bottom

Defines a 4-way set of margins, positioning one area within another.

Used as:

As  to "push in" the background texture to put in line with the border or edge textures of the frame,

As  to define text margins,

As  to modify a frame's hit rectangle in relation to its normal size.

Examples:

  

  





From FrameXML\OptionsFrameTemplates.xml:

    

This allows you to click the checkbox up to 100 pixels (scaled) to the right of the box itself (where the label would be).

BackgroundInsets
You add the background file which is the dialog box background. You then add the edgeFile which will be the dialog box border texture (this will go around the border or "edge" of the frame). You will notice if you remove the background insets you will see the background texture on the outside of the edge texture. BackgroundInsets fixes this.