PtGroup

How can I specify the widgets to do a group in runtime?
My application is like graphical editor and I want to select some widgets draw in the ScrollArea to move or copy, but it seems very dificult.
The application´s widgets are PtPolygon an PtRect.
Does anyone can help me?
Thanks