demonstrates the use of xtd::forms::domain_up_down control.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
namespace domain_up_down_example {
class form1 : public form {
public:
form1() {
text("Domain up down example");
domain_up_down1.parent(*this);
domain_up_down1.location({10, 10});
domain_up_down1.items().push_back_range({"item 1", "item 2", "item 3", "item 4", "item 5", "item 6", "item 7", "item 8", "item 9", "item 10"});
label1.text(string::format("value = {}", domain_up_down1.text()));
};
domain_up_down1.selected_index(1);
label1.parent(*this);
label1.location({10, 50});
}
private:
domain_up_down domain_up_down1;
label label1;
};
}
auto main() -> int {
application::run(domain_up_down_example::form1 {});
}
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900