Represents a common dialog box that displays progress dialog.
| Windows | macOS | Gnome | |
|---|---|---|---|
| Light |
|
|
|
| Dark |
|
|
|
Public Constructors | |
| progress_dialog () | |
| Initializes a new instance of the progress_dialog class. | |
Public Properties | |
| auto | cancelled () const -> bool |
| Gets whether user has clicked on cancel button. | |
| auto | dialog_appearance () const noexcept -> xtd::forms::dialog_appearance |
| Gets the dialog appearance. | |
| auto | dialog_appearance (xtd::forms::dialog_appearance value) -> progress_dialog & |
| Sets the dialog appearance. | |
| auto | informations () const noexcept -> const xtd::array< xtd::string > & |
| Gets the information texts. | |
| auto | informations (const xtd::array< xtd::string > &value) -> progress_dialog & |
| Sets the information texts. | |
| auto | marquee () const noexcept -> bool |
| Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. | |
| auto | marquee (bool value) -> progress_dialog & |
| Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. | |
| auto | marquee_animation_speed () const noexcept -> xtd::usize |
| Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress bar. | |
| auto | marquee_animation_speed (xtd::usize value) -> progress_dialog & |
| Sets the time period, in milliseconds, that it takes the progress block to scroll across the progress bar. | |
| auto | maximum () const noexcept -> xtd::int32 |
| Gets the maximum value of the range of the control. | |
| auto | maximum (xtd::int32 value) -> progress_dialog & |
| Sets the maximum value of the range of the control. | |
| auto | message () const noexcept -> const xtd::string & |
| Gets the message text. | |
| auto | message (const xtd::string &value) -> progress_dialog & |
| Sets the message text. | |
| auto | minimum () const noexcept -> xtd::int32 |
| Gets the minimum value of the range of the control. | |
| auto | minimum (xtd::int32 value) -> progress_dialog & |
| Sets the minimum value of the range of the control. | |
| auto | show_cancel_button () const noexcept -> bool |
| Gets a value that indicates whether cancel button is shown. | |
| auto | show_cancel_button (bool value) -> progress_dialog & |
| Sets a value that indicates whether cancel button is shown. | |
| auto | show_elapsed_time () const noexcept -> bool |
| Gets a value that indicates whether elapsed time is shown. | |
| auto | show_elapsed_time (bool value) -> progress_dialog & |
| Sets a value that indicates whether elapsed time is shown. | |
| auto | show_estimated_time () const noexcept -> bool |
| Gets a value that indicates whether estimated time is shown. | |
| auto | show_estimated_time (bool value) -> progress_dialog & |
| Sets a value that indicates whether estimated time is shown. | |
| auto | show_remaining_time () const noexcept -> bool |
| Gets a value that indicates whether remaining time is shown. | |
| auto | show_remaining_time (bool value) -> progress_dialog & |
| Sets a value that indicates whether remaining time is shown. | |
| auto | show_skip_button () const noexcept -> bool |
| Gets a value that indicates whether skip button is shown. | |
| auto | show_skip_button (bool value) -> progress_dialog & |
| Sets a value that indicates whether skip button is shown. | |
| auto | skipped () const -> bool |
| Gets whether user has clicked on skip button. | |
| auto | step () const noexcept -> xtd::int32 |
| Gets the amount by which a call to the PerformStep() method increases the current position of the progress bar. | |
| auto | step (xtd::int32 value) -> progress_dialog & |
| Sets the amount by which a call to the PerformStep() method increases the current position of the progress bar. | |
| auto | text () const noexcept -> const xtd::string & |
| Gets the dialog title. | |
| auto | text (const xtd::string &value) -> progress_dialog & |
| Sets the dialog title. | |
| auto | value () const noexcept -> xtd::int32 |
| Gets the current position of the progress bar. | |
| auto | value (xtd::int32 value) -> progress_dialog & |
| Sets the current position of the progress bar. | |
Public Methods | |
| auto | hide () -> void |
| Hides progress dialog box. | |
| auto | increment (xtd::int32 increment) -> void |
| Advances the current position of the progress bar by the specified amount. | |
| auto | perform_step () -> void |
| Advances the current position of the progress bar by the amount of the Step property. | |
| auto | reset () noexcept -> void |
| Resets all properties to empty string. | |
| auto | resume () -> void |
| Resume progress dialog box after Abort button clicked. | |
| auto | show () -> void |
| Runs progress dialog box. | |
| auto | show (const xtd::forms::iwin32_window &owner) -> void |
| Runs progress dialog box with specified owner. | |
| auto | show_sheet (const xtd::forms::iwin32_window &owner) -> void |
| Runs progress dialog box as sheet with specified owner. | |
| auto | show_dialog () -> void |
| Runs progress dialog box. | |
| auto | show_dialog (const xtd::forms::iwin32_window &owner) -> void |
| Runs progress dialog box with specified owner. | |
| auto | show_sheet_dialog (const xtd::forms::iwin32_window &owner) -> void |
| Runs progress dialog box with specified owner. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | equals (const object &obj) const noexcept -> bool |
| Determines whether the specified object is equal to the current object. | |
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| Serves as a hash function for a particular type. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| component () | |
| Initialises a new instance of the component class. | |
| virtual auto | can_raise_events () const noexcept -> bool |
| Gets a value indicating whether the component can raise an event. | |
| auto | design_mode () const noexcept -> bool |
| Gets a value that indicates whether the component is currently in design mode. | |
| xtd::forms::progress_dialog::progress_dialog | ( | ) |
Initializes a new instance of the progress_dialog class.
|
nodiscard |
Gets whether user has clicked on cancel button.
|
nodiscardnoexcept |
Gets the dialog appearance.
| auto xtd::forms::progress_dialog::dialog_appearance | ( | xtd::forms::dialog_appearance | value | ) | -> progress_dialog & |
Sets the dialog appearance.
| value | One of the xtd::forms::dialog_appearance values. The default value is xtd::forms::dialog_appearance::standard. |
|
nodiscardnoexcept |
Gets the information texts.
| auto xtd::forms::progress_dialog::informations | ( | const xtd::array< xtd::string > & | value | ) | -> progress_dialog & |
Sets the information texts.
| value | The information texts. |
|
nodiscardnoexcept |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion.
| auto xtd::forms::progress_dialog::marquee | ( | bool | value | ) | -> progress_dialog & |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion.
| value | tree is marquee; otherwise false. The default is false. |
|
nodiscardnoexcept |
Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress bar.
| auto xtd::forms::progress_dialog::marquee_animation_speed | ( | xtd::usize | value | ) | -> progress_dialog & |
Sets the time period, in milliseconds, that it takes the progress block to scroll across the progress bar.
| value | The time period, in milliseconds, that it takes the progress block to scroll across the progress bar. |
|
nodiscardnoexcept |
Gets the maximum value of the range of the control.
| auto xtd::forms::progress_dialog::maximum | ( | xtd::int32 | value | ) | -> progress_dialog & |
Sets the maximum value of the range of the control.
| value | The maximum value of the range. The default is 100. |
|
nodiscardnoexcept |
Gets the message text.
| auto xtd::forms::progress_dialog::message | ( | const xtd::string & | value | ) | -> progress_dialog & |
|
nodiscardnoexcept |
Gets the minimum value of the range of the control.
| auto xtd::forms::progress_dialog::minimum | ( | xtd::int32 | value | ) | -> progress_dialog & |
Sets the minimum value of the range of the control.
| value | The minimum value of the range. The default is 0. |
|
nodiscardnoexcept |
Gets a value that indicates whether cancel button is shown.
| auto xtd::forms::progress_dialog::show_cancel_button | ( | bool | value | ) | -> progress_dialog & |
Sets a value that indicates whether cancel button is shown.
| value | true if cancel button is shown; otherwise false. By default false. |
|
nodiscardnoexcept |
Gets a value that indicates whether elapsed time is shown.
| auto xtd::forms::progress_dialog::show_elapsed_time | ( | bool | value | ) | -> progress_dialog & |
Sets a value that indicates whether elapsed time is shown.
| value | true if elapsed time is shown; otherwise false. By default false. |
|
nodiscardnoexcept |
Gets a value that indicates whether estimated time is shown.
| auto xtd::forms::progress_dialog::show_estimated_time | ( | bool | value | ) | -> progress_dialog & |
Sets a value that indicates whether estimated time is shown.
| value | true if estimated time is shown; otherwise false. By default false. |
|
nodiscardnoexcept |
Gets a value that indicates whether remaining time is shown.
| auto xtd::forms::progress_dialog::show_remaining_time | ( | bool | value | ) | -> progress_dialog & |
Sets a value that indicates whether remaining time is shown.
| value | true if remaining time is shown; otherwise false. By default false. |
|
nodiscardnoexcept |
Gets a value that indicates whether skip button is shown.
| auto xtd::forms::progress_dialog::show_skip_button | ( | bool | value | ) | -> progress_dialog & |
Sets a value that indicates whether skip button is shown.
| value | true if skip button is shown; otherwise false. By default false. |
|
nodiscard |
Gets whether user has clicked on skip button.
|
nodiscardnoexcept |
Gets the amount by which a call to the PerformStep() method increases the current position of the progress bar.
| auto xtd::forms::progress_dialog::step | ( | xtd::int32 | value | ) | -> progress_dialog & |
Sets the amount by which a call to the PerformStep() method increases the current position of the progress bar.
| value | The amount by which to increment the progress bar with each call to the perform_step() method. The default is 10. |
|
nodiscardnoexcept |
Gets the dialog title.
| auto xtd::forms::progress_dialog::text | ( | const xtd::string & | value | ) | -> progress_dialog & |
|
nodiscardnoexcept |
Gets the current position of the progress bar.
| auto xtd::forms::progress_dialog::value | ( | xtd::int32 | value | ) | -> progress_dialog & |
Sets the current position of the progress bar.
| value | The position within the range of the progress bar. The default is 0. |
| auto xtd::forms::progress_dialog::hide | ( | ) | -> void |
Hides progress dialog box.
| auto xtd::forms::progress_dialog::increment | ( | xtd::int32 | increment | ) | -> void |
Advances the current position of the progress bar by the specified amount.
| increment | The amount by which to increment the progress bar's current position. |
| auto xtd::forms::progress_dialog::perform_step | ( | ) | -> void |
Advances the current position of the progress bar by the amount of the Step property.
|
noexcept |
Resets all properties to empty string.
| auto xtd::forms::progress_dialog::resume | ( | ) | -> void |
Resume progress dialog box after Abort button clicked.
| auto xtd::forms::progress_dialog::show | ( | ) | -> void |
Runs progress dialog box.
| auto xtd::forms::progress_dialog::show | ( | const xtd::forms::iwin32_window & | owner | ) | -> void |
Runs progress dialog box with specified owner.
| owner | The progress dialog owner. |
| auto xtd::forms::progress_dialog::show_sheet | ( | const xtd::forms::iwin32_window & | owner | ) | -> void |
Runs progress dialog box as sheet with specified owner.
| owner | The progress dialog owner. |
| auto xtd::forms::progress_dialog::show_dialog | ( | ) | -> void |
Runs progress dialog box.
| auto xtd::forms::progress_dialog::show_dialog | ( | const xtd::forms::iwin32_window & | owner | ) | -> void |
Runs progress dialog box with specified owner.
| owner | The progress dialog owner. |
| auto xtd::forms::progress_dialog::show_sheet_dialog | ( | const xtd::forms::iwin32_window & | owner | ) | -> void |
Runs progress dialog box with specified owner.
| owner | The progress dialog owner. |