/************************************************************************* Handler called when a segment splitter is double-clicked. *************************************************************************/ bool ListHeader::segmentDoubleClickHandler(const EventArgs& e) { WindowEventArgs args(((WindowEventArgs&)e).window); onSplitterDoubleClicked(args); return true; }
/************************************************************************* Handler for when a mouse button is double-clicked *************************************************************************/ void ListHeaderSegment::onMouseDoubleClicked(MouseEventArgs& e) { // base class processing Window::onMouseDoubleClicked(e); // if double-clicked on splitter / sizing area if ((e.button == LeftButton) && d_splitterHover) { WindowEventArgs args(this); onSplitterDoubleClicked(args); ++e.handled; } }