The following code example demonstrate the use of trace_form form.
- Windows
-
- macOS
-
- Gnome
-
#define TRACE
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Trace form example");
button1.auto_repeat(true);
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("Write line...");
button1.click += [&] {
static int counter = 0;
};
}
private:
};
int main() {
application::run(form1());
}
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition trace.h:323