ESODecoded

CreateControl

ESO Lua API function — used by 105 of the 3,030 addons we indexed (combined 38,671,102 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

CreateControl(string name, object parent, [ControlType|#ControlType] type)

Returns: object control

Real usage — from HarvestMap

	self.distanceScale = 1
	self.measurementControl = CreateControl("NodeDetectionMeasurementControl", GuiRoot, CT_CONTROL)
	self.measurementControl:Create3DRenderSpace()

Short excerpt from the shipping addon HarvestMapits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
HarvestMap9,454,533
AwesomeGuildStore4,722,462
Votan's Minimap4,211,718
Master Merchant 3.03,883,523
LibMainMenu-2.02,455,168
LibFilters-3.02,063,617