xtd 0.2.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/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) {
application::do_events();
thread::sleep(10);
}
busy_box::hide();
};
}
private:
};
auto main() -> int {
}
static void run()
Begins running a standard application message loop on the current thread, without a form.
Represents a Windows button control.
Definition button.hpp:49
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
@ button1
The first button on the message box is the default button.
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:11

Public Static Methods

static void hide ()
 Hides a busy box in front.
 
static void show (const iwin32_window &owner)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const iwin32_window &owner, const xtd::string &text)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const iwin32_window &owner, const xtd::string &text, const xtd::string &caption)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const 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)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const 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)
 Displays a busy box in front of the specified window. The busy box displays a message, title bar caption, button, and icon.
 
static void show ()
 Displays a busy box.
 
static void show (const xtd::string &text)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const xtd::string &text, const xtd::string &caption)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 
static void show (const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 
static void 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)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 
static void 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)
 Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
 

Member Function Documentation

◆ hide()

static void xtd::forms::busy_box::hide ( )
static

Hides a busy box in front.

◆ show() [1/14]

static void xtd::forms::busy_box::show ( const iwin32_window owner)
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 iwin32_window that represents the owner window of the busy box.

◆ show() [2/14]

static void xtd::forms::busy_box::show ( const iwin32_window owner,
const xtd::string text 
)
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 iwin32_window that represents the owner window of the busy box.
textA string that specifies the text to display.

◆ show() [3/14]

static void xtd::forms::busy_box::show ( const iwin32_window owner,
const xtd::string text,
const xtd::string caption 
)
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 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]

static void xtd::forms::busy_box::show ( const iwin32_window owner,
const xtd::string text,
const xtd::string caption,
const xtd::drawing::icon icon 
)
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 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]

static void xtd::forms::busy_box::show ( const iwin32_window owner,
const xtd::string text,
const xtd::string caption,
const xtd::drawing::icon icon,
const xtd::drawing::color back_color 
)
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 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]

static void xtd::forms::busy_box::show ( const 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 
)
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 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]

static void xtd::forms::busy_box::show ( const 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 
)
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 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]

static void xtd::forms::busy_box::show ( )
static

Displays a busy box.

◆ show() [9/14]

static void xtd::forms::busy_box::show ( const xtd::string text)
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]

static void xtd::forms::busy_box::show ( const xtd::string text,
const xtd::string caption 
)
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]

static void xtd::forms::busy_box::show ( const xtd::string text,
const xtd::string caption,
const xtd::drawing::icon icon 
)
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]

static void xtd::forms::busy_box::show ( const xtd::string text,
const xtd::string caption,
const xtd::drawing::icon icon,
const xtd::drawing::color back_color 
)
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]

static void 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 
)
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]

static void 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 
)
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: