We're dealing with 3 controls..
A backdrop which is basically an area where other controls are added, and two virtual controls, a checkbox and a label..
Lua Code:
<Backdrop name="$(parent)SearchBG" inherits="ZO_ThinBackdrop">
<Dimensions x="830" y="390" />
<Anchor point="TOPLEFT" offsetX="10" offsetY="80" />
</Backdrop>
<Button name="EnchantMakerCheckBox" inherits="ZO_CheckButton" virtual="true" text="">
<Dimensions x="20" y="20" />
<Anchor point="TOPLEFT" offsetX="50" offsetY="50" />
</Button>
<Label name="EnchantMakerCheckBoxText" font="ZoFontGame" color="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL" virtual="true" text="">
<Anchor point="LEFT" relativePoint="RIGHT" offsetX="10" />
</Label>
The checkbox is added to the backdrop control first and then the label control is added as a child of the checkbox..
Lua Code:
cboxControl = CreateControlFromVirtual(controlName, EnchantMakerSearchBG, "EnchantMakerCheckBox")
labelControl = CreateControlFromVirtual(controlName .. "Text", cboxControl, "EnchantMakerCheckBoxText")