Represents a common dialog box that displays a replace dialog. This class cannot be inherited.
- Header
#include <xtd/forms/replace_box>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
|
|
|
Dark |
|
|
|
- Examples
- The following code example demonstrates the use of xtd::forms::replace_box dialog.
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text(
"Replace box example");
find_button.parent(*this);
find_button.text("replace...");
find_button.location({10, 10});
}, [&](
object& sender,
const replace_event_args&
e) {
diagnostics::debug::write_line(string::format(
"Replace : find string [{}], replace string [{}], match case [{}], whole word [{}]",
e.find_string(),
e.replace_string(),
e.match_case(),
e.whole_word()));
}, [&](object& sender, const replace_event_args& e) {
diagnostics::debug::write_line(string::format(
"Replace all : find string [{}], replace string [{}], match case [{}], whole word [{}]", e.find_string(), e.replace_string(), e.match_case(), e.whole_word()));
});
};
}
private:
};
auto main() -> int {
auto df = debug_form {};
application::run(form1 {});
}
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition debug.hpp:361
#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:900
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25
@ e
The E key.
Definition console_key.hpp:96
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &replace_string, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &replace_string, const xtd::string &title, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &replace_string, const xtd::string &title, bool match_case, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|
template<class find_next_callback_t, class replace_callback_t, class replace_all_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &replace_string, const xtd::string &title, bool match_case, bool whole_word, find_next_callback_t find_next, replace_callback_t replace, replace_all_callback_t replace_all) |
| Displays a replace dialog box.
|
|