Using the New Property Dialog

Previous Next

In order to specify behavior that requires interaction between windows or between a window and the catalog, you need to define one or more new properties.

To define a property, fill out the Name, Type and Argument Position fields, and then click OK. The property will be added to the Properties list in the Object Activator.

Name

Any string that uniquely identify the property within the info box class, dialog class or control class. Start with a letter. Do not use spaces. USoft's built-in property names have, no-space names with the first letter lowercase, as in "myNewProperty".

Type

If you want the property to hold simple text-like values only, accept the default String.

If you want the property to refer to an object in another window, enter the object type here.

For more information, see Method Calls Between Windows.

Argument Position

Within the info box, dialog or control class, give each user-defined property its own argument position: 1, 2, 3 and so on. When creating an instance of the class, the argument position determines which argument is mapped to which user-defined property.

If you leave Argument Position empty, the user-defined property can only be used as a local variable within the class. This defeats the main purpose of user-defined properties in USoft Developer, which is to enable interaction between windows.