/************************************************************************* handler function for when thumb tracking begins *************************************************************************/ bool Scrollbar::handleThumbTrackEnded(const EventArgs&) { // simply trigger our own version of this event WindowEventArgs args(this); onThumbTrackEnded(args); return true; }
/************************************************************************* Handler for event triggered when we lose capture of mouse input *************************************************************************/ void Thumb::onCaptureLost(WindowEventArgs& e) { // default handling PushButton::onCaptureLost(e); d_beingDragged = false; // trigger tracking ended event WindowEventArgs args(this); onThumbTrackEnded(args); // send notification whenever thumb is released onThumbPositionChanged(args); }