create

create();

The create method of the Form class calls a constructor that builds a description of the form as transient JADE objects using the JADE development definition of the form and then builds the physical windows involved. This form description includes all of the controls and menus.

The create method for a form is the same as for any JADE class instance. The form is not displayed until a show method or a showModal statement is executed or the visible property of the form is set to true.

The create method for a control creates a control object but no associated windows object until the addControl method is called.

The following example of the create method for an ActiveXControl assumes that you have imported the Microsoft SysInfo control (that is, sysInfo.ocx) as an ActiveX control. This example creates a JADE control instance and calls the makeAutomationObject method instead of adding the control to a form.

createSysInfoAsAutoObject();
vars
    actX : SysInfo;
begin
    create actX transient;
    actX.makeAutomationObject;
    write actX.oSVersion;
    write actX.oSBuild;
epilog
    delete actX;
end;

The create method of the ProgressBar subclass of the Label control class creates a progress bar, hides the caption property, and sets the borderStyle property to 1 (fixed single).

The create method for a Label class Web picture sets the transparent property to true and the caption property to null ("") when the hotspot is created.