xtd 1.0.0
Loading...
Searching...
No Matches
xtd::forms::busy_box Class Referencefinal
Inheritance diagram for xtd::forms::busy_box:
xtd::static_object

Definition

Represents a dialog box that displays busy box.

Header
#include <xtd/forms/busy_box>
Namespace
xtd::forms
Library
xtd.forms
Appearance
Windows macOS Gnome
Light
Dark
Examples
The following code example demonstrates the use of busy_box dialog.
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Busy box example");
button1.auto_size(true);
button1.location({10, 10});
button1.parent(self_);
button1.text("Do something...");
button1.click += delegate_ {
busy_box::show("Please wait while do something...", "Application busy");
for (auto count = 0; count < 500; ++count) {
thread::sleep(10);
}
};
}
private:
};
auto main() -> int {
}
static auto run() -> void
Begins running a standard application message loop on the current thread, without a form.
static auto do_events() -> void
Processes all Windows messages currently in the message queue.
static auto show() -> void
Displays a busy box.
static auto hide() -> void
Hides a busy box in front.
virtual auto text() const noexcept -> const xtd::string &
Gets the text associated with this control.
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition self.hpp:20
#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:1018
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25
@ button1
The first button on the message box is the default button.
Definition message_dialog_default_button.hpp:24

Public Static Methods

static auto hide () -> void
 Hides a busy box in front.
static auto show (const xtd::forms::iwin32_window &owner) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color, float opacity) -> void
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
static auto show () -> void
 Displays a busy box.
static auto show (const xtd::string &text) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::string &text, const xtd::string &caption) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color, float opacity) -> void
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Member Function Documentation

◆ hide()

auto xtd::forms::busy_box::hide ( ) -> void
static

Hides a busy box in front.

◆ show() [1/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.

◆ show() [2/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.

◆ show() [3/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text,
const xtd::string & caption ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.

◆ show() [4/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.

◆ show() [5/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.

◆ show() [6/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color,
const xtd::drawing::color & fore_color ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.
fore_colorA color that represents the background color of the busy box.

◆ show() [7/14]

auto xtd::forms::busy_box::show ( const xtd::forms::iwin32_window & owner,
const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color,
const xtd::drawing::color & fore_color,
float opacity ) -> void
static

Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.

Parameters
ownerA xtd::forms::iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.
fore_colorA color that represents the background color of the busy box.
opacityA float that represents the opacity of the busy box. (0: full opacity and 1.0 no full opacity)

◆ show() [8/14]

auto xtd::forms::busy_box::show ( ) -> void
static

Displays a busy box.

◆ show() [9/14]

auto xtd::forms::busy_box::show ( const xtd::string & text) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.

◆ show() [10/14]

auto xtd::forms::busy_box::show ( const xtd::string & text,
const xtd::string & caption ) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.

◆ show() [11/14]

auto xtd::forms::busy_box::show ( const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon ) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.

◆ show() [12/14]

auto xtd::forms::busy_box::show ( const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color ) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.

◆ show() [13/14]

auto xtd::forms::busy_box::show ( const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color,
const xtd::drawing::color & fore_color ) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.
fore_colorA color that represents the background color of the busy box.

◆ show() [14/14]

auto xtd::forms::busy_box::show ( const xtd::string & text,
const xtd::string & caption,
const xtd::drawing::icon & icon,
const xtd::drawing::color & back_color,
const xtd::drawing::color & fore_color,
float opacity ) -> void
static

Displays a busy box. The busy box displays a message, title bar caption, button, and icon.

Parameters
textA string that specifies the text to display.
captionA string that specifies the title bar caption to display.
iconAn icon value that specifies the icon to display.
back_colorA color that represents the background color of the busy box.
fore_colorA color that represents the background color of the busy box.
opacityA float that represents the opacity of the busy box. (0: full opacity and 1.0 no opacity). The lower the value, the more transparent.

The documentation for this class was generated from the following file: