Icon CreateElement Method

function CreateElement(const AName: String; AParent:
      TElement=nil; const AClassName: String=ELEMENT_CLASS_DIV;
      AContainer: Boolean=False; AEvents: Boolean=False; ADynamic:
      Boolean=False): TElement

Available In: Visual Client Applications

Use this method to create a new UI element.

The AName parameter specifies the name of the element.

The optional AParent parameter specifies the parent element, if any.

The optional AClassName parameter specifies the element class name to use when creating the element.

The optional AContainer parameter specifes whether or not the element is a container. A container element is one that is capable of being a container for other elements at design-time.

The optional AEvents parameter specifies whether the element wants design-time mouse events in order to allow the developer to interact with the element at design-time.

The optional ADynamic parameter specifies whether the element is being instantiated dynamically at design-time via interaction by the developer.
Image