#include <xtd/diagnostics/debug>
#include <xtd/forms/application>
#include <xtd/forms/debug_form>
#include <xtd/forms/form>
#include <xtd/forms/v_scroll_bar>
namespace v_scroll_bar_example {
class form1 :
public form {
public:
form1() {
text("vertical scroll bar example");
v_scroll_bar1.parent(*this);
v_scroll_bar1.location({30, 10});
v_scroll_bar2.parent(*this);
v_scroll_bar2.location({70, 10});
v_scroll_bar2.height(220);
v_scroll_bar2.large_change(2);
v_scroll_bar2.minimum(0);
v_scroll_bar2.maximum(20);
v_scroll_bar2.value(10);
v_scroll_bar2.scroll += [&] {
};
}
private:
};
}
auto main() -> int {
application::run(v_scroll_bar_example::form1 {});
}
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition debug.h:361