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;
|
||||
|
||||
if (API::is_focus_ready(editor_->window_handle()))
|
||||
if (API::is_focus_ready(editor_->window_handle()) && editor_->attr().editable)
|
||||
text = to_wstring(range_->value());
|
||||
else
|
||||
text = to_wstring(modifier_.prefix + range_->value() + modifier_.suffix);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user