src/widget/widget_caption.cpp
branchcpp_gui
changeset 6277 732cf765e2d7
parent 6276 e5f0198ec570
child 6278 c09f5e53af9b
equal deleted inserted replaced
6276:e5f0198ec570 6277:732cf765e2d7
    43 
    43 
    44 /*virtual*/ void CaptionBar::OnLeftClick(EvtClick &ev)
    44 /*virtual*/ void CaptionBar::OnLeftClick(EvtClick &ev)
    45 {
    45 {
    46 	m_moving_offset = ev.m_pt;
    46 	m_moving_offset = ev.m_pt;
    47 	ev.SetHandled();
    47 	ev.SetHandled();
    48 	m_ticket_moving = CaptureEventsT(this, &CaptionBar::OnCapturePressed);
    48 	m_ticket_moving = CaptureEventsT(this, &CaptionBar::OnCaptureMoving);
    49 	Invalidate();
    49 	Invalidate();
    50 }
    50 }
    51 
    51 
    52 void CaptionBar::OnCapturePressed(EvtMouseOver &e)
    52 void CaptionBar::OnCaptureMoving(EvtMouseOver &e)
    53 {
    53 {
    54 	if (!_left_button_down) {
    54 	if (!_left_button_down) {
    55 		m_ticket_moving.Release();
    55 		m_ticket_moving.Release();
    56 
    56 
    57 		EvtClick ev(Point(0, 0));
    57 		EvtClick ev(Point(0, 0));