Attaches a new node to the group, in such a way that its area is always taking certain percentage of the main object's area.
VB6 Copy Code |
---|
Public Sub AttachProportional( _ |
C++ Copy Code |
---|
public: |
Calling this method makes sense only if the main object of the group is either a box or a table. obj - the object that you attach, can be either a box or a table. The left, top, right and bottom arguments specify the position and size of the attached object relative to that of the main object. Their values must be expressed as percent of the main object's extents.
To create a box that displays an image in the top ¾ part of its area and text in its bottom ¼ part, you could use group of three boxes as show below. Note that in the given example the attached objects are locked. Users cannot select or modify them, and if they click one of them the main object is selected instead.
C# Copy Code |
---|
group = fc.CreateGroup(boxMain); |