Procedure OnCollapse
OnCollapse is triggered when a group collapses. It is intended as a developer hook for augmentation.By default, this event is turned off using pbServerOnCollapse.