void cbBarDragPlugin::OnLButtonDown( cbLeftDownEvent& event ) { if ( mBarDragStarted ) { wxMessageBox(wxT("DblClick!")); } event.Skip(); }
void cbBarHintsPlugin::OnLeftDown( cbLeftDownEvent& event ) { mpPane = event.mpPane; wxPoint inFrame = event.mPos; mpPane->PaneToFrame( &inFrame.x, &inFrame.y ); wxBarIterator iter( mpPane->GetRowList() ); mpClickedBar = NULL; while ( iter.Next() ) { cbBarInfo& bar = iter.BarInfo(); int boxOfs, grooveOfs, pos; GetHintsLayout( bar.mBoundsInParent, bar, boxOfs, grooveOfs, pos ); if ( !bar.IsFixed() ) { int i; for ( i = 0; i != BOXES_IN_HINT; ++i ) { mBoxes[i]->mPressed = false; mBoxes[i]->mWasClicked = false; } for ( i = 0; i != BOXES_IN_HINT; ++i ) { mBoxes[i]->OnLeftDown( inFrame ); if ( mBoxes[i]->mPressed ) { mBtnPressed = true; mpClickedBar = &bar; return; // event handled } } } } event.Skip(); }
void cbRowDragPlugin::OnLButtonDown( cbLeftDownEvent& event ) { mpPane = event.mpPane; // DBG:: wxASSERT( !mDragStarted && !mDecisionMode ); if ( ItemIsInFocus() ) { mDecisionMode = true; wxPoint pos = event.mPos; mpPane->PaneToFrame( &pos.x, &pos.y ); mDragOrigin = pos; SetMouseCapture( true ); } else // propagate event to other plugins event.Skip(); }