a bool param to determines whether the caret move to end of text

This commit is contained in:
Jinhao
2016-05-10 15:52:06 +08:00
parent 79f484dd2e
commit df68cfa3ad
7 changed files with 61 additions and 35 deletions

View File

@@ -351,7 +351,7 @@ namespace nana
if (calc_where(*graph_, pos.x, pos.y))
state_.button_state = element_state::normal;
editor_->text(::nana::charset(items_[index]->item_text, ::nana::unicode::utf8));
editor_->text(::nana::charset(items_[index]->item_text, ::nana::unicode::utf8), false);
_m_draw_push_button(widget_->enabled());
_m_draw_image();
@@ -993,7 +993,7 @@ namespace nana
auto editor = _m_impl().editor();
if (editor)
editor->text(to_wstring(str));
editor->text(to_wstring(str), false);
API::refresh_window(*this);
}