Difference between revisions of "cock.new"

m (Arguments)
m (See also)
Line 13: Line 13:
 
*[[cock.find]]
 
*[[cock.find]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
*[[parent::Common Organization of Controls Kit Manual]]
[[category:Functions]]
+
[[Category:Functions]]
 
*[[Common Organization of Controls Kit]]
 
*[[Common Organization of Controls Kit]]
  
 
{{#set:Description=Creates new object.}}
 
{{#set:Description=Creates new object.}}

Revision as of 18:40, 31 August 2013

Creates a new control object.

Synopsis

Function

control = cock.new ( id, data )

Arguments

string id
Optional. An identifier to use for this object. Generated automatically if not provided.
table data
Optional. Specifically formated setup data to build layouts from. Will not instantly create layout if not provided.

Returns

table control
Newly created control object

See also