Skip to content

Regarding the usage of xtd::forms::busy_box #243

Closed Answered by gammasoft71
baderouaich asked this question in Q&A
Discussion options

You must be logged in to vote

I'm fine thanks.

First of all the xtd::application::do_events method processes all Windows messages currently in the message queue.
Read the Remarks and Warningsections for more information about this method.

This is a didactic example, designed to show you how to use the xtd::forms::message_box dialog box.
This example is simple to focused the use of xtd::forms::busy_box.

The following lines simply emulate a time-consuming process:

for (auto count = 0; count < 500; ++count) {
  application::do_events();
  thread::sleep(10);
}

But in real code, you'll never use the for loop with the xtd::threading::thread::sleep and xtd::forms::application::do_event statements.
It's a very bad idea to do …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baderouaich
Comment options

baderouaich Dec 9, 2023
Collaborator Author

Answer selected by baderouaich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants