Description: Aligns selected graphic objects.
Returns: Nothing
Usage: Script
Format: AlignSelected(Object, Mode, Side)
Parameters: Object { numeric } { required } { no default: }
Any object expression giving the module instance where the selected objects are found; they will be aligned as specified by the Mode and Side parameters (defined below).
Mode { numeric } { required } { no default: }
Any numeric expression that specifies how the objects will be aligned:
|
Mode |
Alignment Type |
|
0 |
Align |
|
1 |
Stretch |
|
2 |
Size |
|
3 |
Space |
|
4 |
Tile |
|
5 |
Equal space between |
Side { numeric } { required } { no default: }
Any numeric expression that specifies what side will be used when aligning objects. This also specifies the direction for equal or even spacing.
|
Side |
Meaning |
|
0 |
Left |
|
1 |
Aligns on vertical center line |
|
2 |
Right |
|
3 |
Top |
|
4 |
Aligns on horizontal center line |
|
5 |
Bottom |
Comments: This statement is used to implement the GUI tool bar alignment buttons.
Example:
AlignSelected(FindVariable("Graphics", Self(), 0, 1)
{ Find the module's object pointer },
1, 2 { Stretch the right side to align it });
See Also: