• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Control Objects

Control object constructors

Use the add method to create new containers and controls. The add method is available on window and container (panel and group) objects. (See also add (page 176) for dropdownlist (page 165) and listbox (page 168) controls.)

add
  (type [, bounds, text,
  {creation_props> } ]);

 Creates and returns a new control or container object and adds it to the children of this window or container. Returns null if unable to create the object.
typeThe control type. See “Control types and creation parameters” on page 165.
boundsOptional. A bounds specification that describes the size and position of the new control or container, relative to its parent. See Bounds (page 178) object for specification formats.
 If supplied, this value creates a new Bounds (page 178) object which is assigned to the new object’s bounds property.
textOptional. String. Initial text to be displayed in the control as the title, label, or contents, depending on the control type. If supplied, this value is assigned to the new object’s text property.
creation_propsOptional. Object. The properties of this object specify creation parameters, which are specific to each object type. See “Control types and creation parameters” on page 165.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint