Boolean MouseDown( TMouseDownEvent& mouseDown ) { TGPoint selection( mouseDown.GetEventPosition() ); GlobalToLocal( selection ); TGraphicIterator* iterator = fWagon->CreateIterator(); MGraphic* aGraphic = iterator->First(); while (aGraphic) { TGRect bounds( fWagon->GetGeometricBounds() ); if ( bounds.Contains( selection ) ) qprintf( "Selected\n" ); else qprintf( "not selected\n" ); aGraphic = iterator->Next(); } iterator->Reset(); Invalidate(); return( TRUE); }