develop inline widgets for listbox

This commit is contained in:
Jinhao
2015-06-21 04:44:49 +08:00
parent c761aced03
commit 1bb9a09a8a
9 changed files with 121 additions and 43 deletions

View File

@@ -689,16 +689,18 @@ namespace detail
{
if(forced || (false == wd->belong_to_lazy()))
{
wndlayout_type::paint(wd, redraw, false);
this->map(wd, forced);
}
else
{
if(redraw)
wndlayout_type::paint(wd, true, false);
if(wd->other.upd_state == core_window_t::update_state::lazy)
wd->other.upd_state = core_window_t::update_state::refresh;
if (!wd->flags.refreshing)
{
wndlayout_type::paint(wd, redraw, false);
this->map(wd, forced);
return true;
}
}
else if(redraw)
wndlayout_type::paint(wd, true, false);
if (wd->other.upd_state == core_window_t::update_state::lazy)
wd->other.upd_state = core_window_t::update_state::refresh;
}
return true;
}