set_accept() for Combox and Textbox

Coordinator
Apr 15, 2014 at 6:45 PM
The new set_accept() method is used for specifying a function to determine whether the keyboard input is accepted. For example, a textbox only accepts digital input.
textbox.set_accept([](nana::char_t ch)
{
    return ('0' <= ch && ch <= '9');
});
The prototype of set_accept() is:
bool(nana::char_t)