21 tooltip(
"Format example: 01:23:45:67:89:ab");
26 std::istringstream in(value());
30 uint64_t v[6]={256, 256, 256, 256, 256, 256};
31 char s[5]={
' ',
' ',
' ',
' ',
' '};
32 in >> std::hex >> v[0] >> s[0] >> v[1] >> s[1] >> v[2] >> s[2] >> v[3] >> s[3] >> v[4] >>
37 for (
int i=0; i<5; i++)
39 if (s[i] !=
':')
return 0;
51 for (
int i=0; i<6; i++)
53 if (v[i] > 255)
return 0;
58 return ((v[0]<<40) | (v[1]<<32) | (v[2]<<24) | (v[3]<<16) | (v[4]<<8) | v[5]);
63 if (event == FL_KEYBOARD && !(Fl::event_key() == FL_Tab))
65 char ascii=Fl::event_text()[0];
67 if (std::isprint(ascii) && !isxdigit(ascii) && ascii !=
':')
73 std::string v=value();
77 int ret=Fl_Input::handle(event);
81 if (
cb && v != value())