C++ (Qt)void MyWindow::MouseListDown( QMouseEvent * e ){ if (!HandleListItemDrag(e)) DoListSelection(e);}
C++ (Qt)while (IsMouseStillDown()) { while (GetLocalEvent(e)) { switch (e->type()) { case QEvent::KeyPressed: if (CheckCancel(e)) // drag aborted ? return false; } } ... }
C++ (Qt)if (!IsMouseMoved()) return falsewhile (IsMoiseStillDown()) {...}