Property Value Settings

Displaying Selected Component in Property Window

If you select the component placed on the design screen, then the property value of the selected component is displayed in the property window. You can check or modify the property value in the property window.

Even if you do not select the component on the design screen, then you can still select the component from [Project Explorer] or select the desired component from the property window list.

Checking Default Value of Selected Component

The first time the component is placed on the design screen, the property value is set by default. With the component selected, you can check the property value of the component in the property window displayed on the right side of Nexacro Studio.

When the default value of the component is modified, the property value is displayed in bold font. The property values of id, text, left, top, width, and height are displayed in the bold font when they are first placed on the design screen. This is because the id, text property values are specified in the process of placing the component, and Position-related property values are specified according to the placed location.

If you modify the enable property value to false in the initial state, then it is displayed in bold font as shown below.

Changing Text Property Value of Button Component in Property Window

1

Place the Button component on the design screen and select the placed Button component.

2

Find the text property item in the property window. You can find it right away by entering the desired item in the search window at the top of the property window.

The search window at the top of the property window finds the property items that include items entered as search words. If you enter "text" as the search word, then all property items containing "text" in the property name will be displayed.

3

In the text property item, click the part with the property value with the mouse and enter the desired text.

If you want to input 2 or more lines of text in the text input item, then click the button on the right to display the editor that allows you to input 2 or more lines of text. You can press the Ctrl+Enter key for line breaking.

4

If you move to another property item or move the focus to the design screen after entering text, then you can see that the text of the Button component has been changed.

Changing Text Property Value of Button Component in Script

1

Change to the script screen. Select the "Script" tab from the 3 tab buttons shown at the bottom of the design screen.

2

Enter the code on the script screen. The Nexacro Studio script screen supports the IntelliSense function that helps you write code.

If you enter "." after entering the text "this", a list of the placed components along with the properties, methods, and events of the Form object is displayed. It filters the displayed list according to the characters entered after inputting ".". Select the desired component from the list.

3

If you enter "this.Button00." just like entering "this.", a list of the properties, methods, and events of the Button component is displayed. Select the text property item from the list.

4

If you enter the equal sign ("=") after entering "this.Button00.text", then the code to set the property value is automatically created.

If you enter the text that starts with "set_" after "this.Button00." in the previous step, then you can still write the same code.

5

Enter the value to specify as the text property value. The completed code is as follows.

this.Button00.set_text("TEST");

6

Save the changed content and select the [QuickView] item in the toolbar. The Button component is displayed on the screen as the Nexacro browser is executed. Run the code previously written while loading the screen and check that the text property of the Button component is changed.