refactor wnd.cpp

This commit is contained in:
idea4good
2019-09-12 17:05:37 +08:00
parent 5b1bd4f387
commit f7ac16b4db
6 changed files with 19 additions and 49 deletions

View File

@@ -79,7 +79,7 @@ void c_spin_box::on_touch_up(int x, int y)
m_value = m_cur_value;
m_status = STATUS_FOCUSED;
on_paint();
notify_parent(GL_SPIN_CONFIRM, get_id(), m_value);
notify_parent(GL_SPIN_CONFIRM, m_value);
}
}
@@ -168,7 +168,7 @@ void c_spin_box::on_arrow_up_bt_click(unsigned int ctr_id)
return;
}
m_cur_value += m_step;
notify_parent(GL_SPIN_CHANGE, get_id(), m_cur_value);
notify_parent(GL_SPIN_CHANGE, m_cur_value);
on_paint();
}
@@ -179,6 +179,6 @@ void c_spin_box::on_arrow_down_bt_click(unsigned int ctr_id)
return;
}
m_cur_value -= m_step;
notify_parent(GL_SPIN_CHANGE, get_id(), m_cur_value);
notify_parent(GL_SPIN_CHANGE, m_cur_value);
on_paint();
}