cnjinhao / nana

a modern C++ GUI library
https://nana.acemind.cn
Boost Software License 1.0
2.32k stars 333 forks source link

Added ability to call api::enable_double_click #605

Closed ashbob999 closed 3 years ago

ashbob999 commented 3 years ago

The code to enable/disable the double click event for a widget already existed in source/gui/programming_interface.cpp but it seems that it was missed out in include/nana/gui/programming_interface.hpp, so I have added it.

This now allows us to call api::enable_double_click(window wd, bool dbl); Which is useful if you want to be able to rapidly click on a button and have every click emit a click event, rather than every other click.

cnjinhao commented 3 years ago

Thanks for your PR!