add a method to show caret for the uneditable textbox

When an uneditable textbox has a caret, user can select the text and copy
it.
This commit is contained in:
Jinhao
2016-09-03 07:46:43 +08:00
parent 0f951d6b3e
commit d6cb631bc2
6 changed files with 41 additions and 16 deletions

View File

@@ -170,7 +170,7 @@ namespace nana
{
if(editor_)
{
editor_->editable(enb);
editor_->editable(enb, false);
editor_->show_caret(enb);
if (!enb)
{