textbox& textbox::multi_lines(bool ml) { auto editor = get_drawer_trigger().editor(); if(editor && editor->multi_lines(ml)) API::update_window(handle()); return *this; }
textbox& textbox::multi_lines(bool ml) { internal_scope_guard lock; auto editor = get_drawer_trigger().editor(); if (editor && editor->multi_lines(ml)) { auto wd = handle(); API::eat_tabstop(wd, ml); //textbox handles the Tab pressing when it is multi-line. API::update_window(wd); } return *this; }