"selection"
Get/ Set property for the shapes or groups selected within a panel.
Synopsis
shape.selection(dyn_shape shapes);
Parameters
Parameter | Description |
---|---|
shapes | selected shapes |
Description
The "shapes" variable saves and returns all shapes added to the selection as a dyn_shape.
Example
This example adds two rectangles to the selection and then writes the addresses in the logViewer.
main()
{
dyn_shape panelShapes;
shape rectangle1 = getShape("RECTANGLE1");
shape rectangle2 = getShape("RECTANGLE2");
this.selection( makeDynShape(rectangle1, rectangle2) );
panelShapes = this.selection();
DebugN(panelShapes);
}
Assignment
Panel