Add support CSS color text for class nana::color

This commit is contained in:
cnjinhao
2015-02-06 01:45:17 +08:00
parent fd5ff571a7
commit 81a50fd84f
6 changed files with 267 additions and 19 deletions

View File

@@ -611,22 +611,12 @@ namespace nana
int spinbox::to_int() const
{
//std::stoi is not defined by MinGW
std::wstringstream ss;
ss << value();
int n = 0;
ss >> n;
return n;
return ::nana::stoi(value());
}
double spinbox::to_double() const
{
//std::stod is not defined by MinGW
std::wstringstream ss;
ss << value();
double d = 0;
ss >> d;
return d;
return ::nana::stod(value());
}
void spinbox::set_accept(std::function<bool(::nana::char_t)> pred)