Form Builder Group of objects in development (objectgroups)
Text found in Form builder on-line help
(Copyright notice, I original or translation of the article if necessary reprint, please contact me, the offender must investigate)
Terminology
Object Group-object Groups
Module-module
Inherit-subclass
Window-window
Canvas-canvas
Data Block-block
Menu-menu
Trigger-trigger
Relationship-relation
about Object groups (objectgroups)
A group of objects object is a container of objects (object) that can be set up when you need to package related objects so that they can be used by other module (module) inheritance (subclass) or copy.
Object groups provide a way to package objects into higher-level building blocks so that they can be used in other parts of the application or in future project development.
For example, you develop a scheduling function in a form, and then you decide to implement this function in other form in your application. The schedule may consist of the following types of objects, including Windows (window), canvas (canvas), blocks, Item, which are used together to display dates and schedules, and triggers to implement business logic for scheduling and other functions. If you pack these objects into an object group, you can copy them to any number of other form by simply manipulating them.
You can create object groups in form or menu module. Once you create a group of objects, you can add and remove objects as needed.
guiding principles for creating object groups
When creating groups of objects, consider the following guidelines
l When you pull a block into a group of objects, the blocks contain objects (items, triggers triggers, Relational relations) is implicitly added to this object group. However, the block contains objects that do not appear under block in the object group list.
L only top-level objects can be included in the object group
An object owned by a block can not be added to an object group independently. Includes Items,item-level triggers, block-level triggers and relationships (rlations). These objects cannot exist independently of the object that defines them. To add these objects to the object group, you must drag the corresponding block into the object group in the object Navigator to join the object group.
L all objects in an object group must be defined in the same module, and you cannot put objects from two different form into the same object group.
L An object group cannot contain another group of objects.
L when an object in an object group is deleted in the module, it is automatically deleted in the object group.
L deletes an object group from the module and does not delete objects contained in this object group in this module.
The L object group does not store the backups of the objects it contains, but instead points to those objects, and defining groups of objects does not increase the size of the modules (unless the object group is inherited).
Creating object Groups
1. In the Object Navigator, click on Object Group (object Groups) node.
2. Click the New button in the toolbar
An object group with a default name is inserted under the Object Group node. When you double-click to expand this object, the object group child nodes appear. The objects you join will appear under this child node.
To add an object to an object group
1. In the Object Navigator, click the + icon next to the object Group (object Groups) node.
2. Drag the objects to be added to the object group child nodes.
Change Object Group
1. In the Object Navigator, double-click the group of objects you want to modify, pop-up the properties panel
2. Modify the corresponding property
To remove an object from a group of objects
1. In the Object Navigator, click the object you want to remove
2. Select Edit->clear or click Delete
Note: Removing an object from an object group does not remove the object from the module.