xtd 0.2.0
busy_box.cpp

demonstrates the use of xtd::forms::busy_box dialog.

Windows
busy_box_w.png

busy_box_wd.png
macOS
busy_box_m.png

busy_box_md.png
Gnome
busy_box_g.png

busy_box_gd.png
#include <xtd/forms/application>
#include <xtd/forms/busy_box>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/threading/thread>
using namespace xtd::forms;
using namespace xtd::threading;
class form1 : public form {
public:
form1() {
text("Busy box example");
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("Do something...");
button1.click += [] {
busy_box::show("Please wait while do something...", "Application busy");
for (auto count = 0; count < 500; ++count) {
}
};
}
private:
};
auto main()->int {
}