Adding Objects

Let us take a look at how to create a new project and add objects. The objects that can be added are as follows.

Object

Description

Composite Component

Places 1 or more components on Form.

Inherits nexacro.CompositeComponent.

Visible Object

Creates the component shown on the screen.

Inherits and implements components such as Button or inherits nexacro.Component to create a new form of component.

Invisible Object

Creates the object not shown on the screen.

Inherits and implements objects such as Dataset or inherits nexacro.Object to create a new form of the object.

EventInfo Object

Creates the EventInfo object that is transmitted when the event occurs.

Inherits and implements EventInfo like ClickEventInfo or inherits nexacro.EventInfo to create a new form of EventInfo object.

Device Adaptor

This is the object that Inherits and implements nexacro.DeviceAdaptor.

Protocol Adaptor

This is the object that Inherits and implements nexacro.ProtocolAdaptor.

Common Input Items

Item

Description

Object ID

Sets Object ID.

The file name connected to the object in the project is also created based on the Object ID.

(It is displayed as undefined in the Project Preview area on the right before entering the Object ID).

Object Information

Inheritance

Sets or displays the objects to be inherited.

Composite Component is fixed as nexacro.CompositeComponent, and for other objects, select the object to inherit from the list on the left.

ClassName

Automatically entered to display according to the Object ID.

Description

Sets the summary description of the object to create.

When the object to inherit is selected, Description of the object is displayed.

FinalClass

Sets whether to allow inheritance.

When set to false, it is displayed as a list of objects that can be inherited when creating other objects.

If you do not want to allow inheritance, then change it to true.

Contents Information

Contents

Sets whether to use Content

Editor.

Composite Component

Composite Component is fixed in a structure that inherits nexacro.CompositeComponent.

Item

Description

Object Information

Default Width

Sets the width property value


of the Form object.

Default Height

Sets the height property value


of the Form object.

Visible Object

Create the component that is shown on the screen. You can select the component to inherit and set the style-related property.

Item

Description

Object Information

Default Width

Sets the default width property



value of the component.

Default Height

Sets the default height property value of the component.

Style

Inheritance

Sets the default style of the component.

- default

Specify only the minimum style property to classify the component area (-nexa-border: 1px solid red)

- theme

Imports the style property of the object inherited from the currently used theme.

Notes when setting the Style Inheritance property value to "theme"

- Style properties according to Status are not imported.

- If nexacro.Component is inherited, then style properties are not specified because there is no theme specified.

Other Objects

Create the object that is not displayed on the screen. You can set whether to create the Design Script file.

Item

Description

Misc.

Design Script

Sets whether to create the Design Script file.

It is used to define necessary actions in the Nexacro Studio edit window when installing the module.

Invisible Object, EventInfo Object

Select the object to inherit and enter the rest of the items.

Device Adaptor, Protocol Adaptor

Enter the rest of the items while the object to inherit is set.

Entering Meta-info Details

Select the object type to create, enter the items, and click the [Finish] button to create the object. If you want to set the meta-info details of the object, then you can click the [Next] button to set the detailed items.

The meta-info details can be modified even after the object creation.

Please refer to the following.

Editing Metainfo