Represents a common dialog box that displays a find dialog. This class cannot be inherited.
- Header
#include <xtd/forms/file_box>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
|
|
|
Dark |
|
|
|
- Examples
- The following code example demonstrates the use of xtd::forms::find_box dialog.
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text(
"Find box example");
find_button.parent(*this);
find_button.text("find...");
find_button.location({10, 10});
diagnostics::debug::write_line(string::format(
"Find next : find string [{}], match case [{}], search direction [{}], whole word [{}]",
e.find_string(),
e.match_case(),
e.search_direction(),
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
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, xtd::forms::search_direction search_direction, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
template<class find_next_callback_t> |
static void | show (const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, xtd::forms::search_direction search_direction, bool whole_word, find_next_callback_t find_next) |
| Displays a find dialog box.
|
|
◆ show() [1/6]
template<class find_next_callback_t>
static void xtd::forms::find_box::show |
( |
const iwin32_window & | owner, |
|
|
find_next_callback_t | find_next ) |
|
inlinestatic |
Displays a find dialog box.
- Parameters
-
owner | An xtd::forms::iwin32_window that represents the owner window of the find dialog box. |
find_next | The callback called when the user click the find button. |
◆ show() [2/6]
template<class find_next_callback_t>
static void xtd::forms::find_box::show |
( |
const iwin32_window & | owner, |
|
|
const xtd::string & | find_string, |
|
|
find_next_callback_t | find_next ) |
|
inlinestatic |
Displays a find dialog box.
- Parameters
-
owner | An xtd::forms::iwin32_window that represents the owner window of the find dialog box. |
find_string | The string to find. |
find_next | The callback called when the user click the find button. |
◆ show() [3/6]
template<class find_next_callback_t>
Displays a find dialog box.
- Parameters
-
owner | An xtd::forms::iwin32_window that represents the owner window of the find dialog box. |
find_string | The string to find. |
title | The find dialog title. |
find_next | The callback called when the user click the find button. |
◆ show() [4/6]
template<class find_next_callback_t>
static void xtd::forms::find_box::show |
( |
const iwin32_window & | owner, |
|
|
const xtd::string & | find_string, |
|
|
const xtd::string & | title, |
|
|
bool | match_case, |
|
|
find_next_callback_t | find_next ) |
|
inlinestatic |
Displays a find dialog box.
- Parameters
-
owner | An xtd::forms::iwin32_window that represents the owner window of the find dialog box. |
find_string | The string to find. |
title | The find dialog title. |
match_case | true if match case option selected; otherwise false . |
find_next | The callback called when the user click the find button. |
◆ show() [5/6]
template<class find_next_callback_t>
Displays a find dialog box.
- Parameters
-
◆ show() [6/6]
template<class find_next_callback_t>
Displays a find dialog box.
- Parameters
-
owner | An xtd::forms::iwin32_window that represents the owner window of the find dialog box. |
find_string | The string to find. |
title | The find dialog title. |
match_case | true if match case option selected; otherwise false . |
search_direction | One of xtd::forms::search_direction values. |
whole_word | true if whole word option selected; otherwise false . |
find_next | The callback called when the user click the find button. |
The documentation for this class was generated from the following file: