The following code example demonstrate the use of lcd_label control.
#include <xtd/xtd>
using namespace std::literals;
int main() {
auto counter = 0;
form_main.
text(
"Lcd label example 2");
label.
text(ustring::format(
"{,5:F1}", counter++ / 10.0));
};
if (control::mouse_buttons() == mouse_buttons::left)
else {
counter = 0;
}
};
application::run(form_main);
}
event< control, mouse_event_handler > mouse_down
Occurs when the mouse pointer is over the control and a mouse button is pressed.
Definition: control.h:1278
event< timer, event_handler > tick
Occurs when the specified timer interval has elapsed and the timer is enabled.
Definition: timer.h:80
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition: bitmap.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17