xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::find_box Class Referencefinal
Inheritance diagram for xtd::forms::find_box:
xtd::static_object

Definition

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/diagnostics/debug>
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/debug_form>
#include <xtd/forms/find_box>
#include <xtd/forms/form>
using namespace xtd;
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
text("Find box example");
find_button.parent(*this);
find_button.text("find...");
find_button.location({10, 10});
find_button.click += [&] {
find_box::show(*this, "Gammasoft", "Find", [&](object& sender, const find_event_args& e) {
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:
button find_button;
};
auto main() -> int {
auto df = debug_form {};
application::run(form1 {});
}
static void run()
Begins running a standard application message loop on the current thread, without a form.
Represents a Windows button control.
Definition button.h:49
Represents a form that displays debug form. This class cannot be inherited.
Definition debug_form.h:36
Provides data for the xtd::forms::find_dialog::find_next and xtd::forms::replace_dialog::find_next ev...
Definition find_event_args.h:25
Represents a window or dialog box that makes up an application's user interface.
Definition form.h:54
@ e
The E key.
@ 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.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10

Public Static Methods

template<typename find_next_callback_t >
static void show (const iwin32_window &owner, find_next_callback_t find_next)
 Displays a find dialog box.
 
template<typename 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<typename 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<typename 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<typename 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<typename 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.
 

Member Function Documentation

◆ show() [1/6]

template<typename 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
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_nextThe callback called when the user click the find button.

◆ show() [2/6]

template<typename 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
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_stringThe string to find.
find_nextThe callback called when the user click the find button.

◆ show() [3/6]

template<typename find_next_callback_t >
static void xtd::forms::find_box::show ( const iwin32_window owner,
const xtd::string find_string,
const xtd::string title,
find_next_callback_t  find_next 
)
inlinestatic

Displays a find dialog box.

Parameters
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_stringThe string to find.
titleThe find dialog title.
find_nextThe callback called when the user click the find button.

◆ show() [4/6]

template<typename 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
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_stringThe string to find.
titleThe find dialog title.
match_casetrue if match case option selected; otherwise false.
find_nextThe callback called when the user click the find button.

◆ show() [5/6]

template<typename 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,
xtd::forms::search_direction  search_direction,
find_next_callback_t  find_next 
)
inlinestatic

Displays a find dialog box.

Parameters
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_stringThe string to find.
titleThe find dialog title.
match_casetrue if match case option selected; otherwise false.
search_directionOne of xtd::forms::search_direction values.
find_nextThe callback called when the user click the find button.

◆ show() [6/6]

template<typename 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,
xtd::forms::search_direction  search_direction,
bool  whole_word,
find_next_callback_t  find_next 
)
inlinestatic

Displays a find dialog box.

Parameters
ownerAn xtd::forms::iwin32_window that represents the owner window of the find dialog box.
find_stringThe string to find.
titleThe find dialog title.
match_casetrue if match case option selected; otherwise false.
search_directionOne of xtd::forms::search_direction values.
whole_wordtrue if whole word option selected; otherwise false.
find_nextThe callback called when the user click the find button.

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