spinbox: if not editable keep prefix and suffix when gain focus
This commit is contained in:
parent
7d05edb47b
commit
4c3455648f
@ -467,7 +467,7 @@ namespace nana
|
|||||||
|
|
||||||
std::wstring text;
|
std::wstring text;
|
||||||
|
|
||||||
if (API::is_focus_ready(editor_->window_handle()))
|
if (API::is_focus_ready(editor_->window_handle()) && editor_->attr().editable)
|
||||||
text = to_wstring(range_->value());
|
text = to_wstring(range_->value());
|
||||||
else
|
else
|
||||||
text = to_wstring(modifier_.prefix + range_->value() + modifier_.suffix);
|
text = to_wstring(modifier_.prefix + range_->value() + modifier_.suffix);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user