Added Windows-style mouse double-click to the textbox

- the word under cursor is selected with double-click now
 - tested in both editable and read-only modes

This addresses #226.
This commit is contained in:
Oleg Smolsky
2017-07-12 10:45:04 -07:00
parent 255f5851c6
commit e8755e6283
4 changed files with 59 additions and 14 deletions

View File

@@ -211,6 +211,7 @@ namespace nana{ namespace widgets
bool mouse_enter(bool entering);
bool mouse_move(bool left_button, const point& screen_pos);
void mouse_pressed(const arg_mouse& arg);
bool select_word(const arg_mouse& arg);
skeletons::textbase<char_type>& textbase();
const skeletons::textbase<char_type>& textbase() const;

View File

@@ -80,6 +80,7 @@ namespace nana
void mouse_up(graph_reference, const arg_mouse&) override;
void mouse_enter(graph_reference, const arg_mouse&) override;
void mouse_leave(graph_reference, const arg_mouse&) override;
void dbl_click(graph_reference, const arg_mouse&) override;
void key_press(graph_reference, const arg_keyboard&)override;
void key_char(graph_reference, const arg_keyboard&) override;
void mouse_wheel(graph_reference, const arg_wheel&) override;