Contents Up Previous Next

wxFindDialogEvent

wxFindReplaceDialog events

Derived from

wxCommandEvent

Include files

<wx/fdrepdlg.h>

Event table macros

To process a command event from wxFindReplaceDialog, use these event handler macros to direct input to member functions that take a wxFindDialogEvent argument. The id parameter is the identifier of the find dialog and you may usually specify -1 for it unless you plan to have several find dialogs sending events to the same owner window simultaneously.

EVT_FIND(id, func) Find button was pressed in the dialog.
EVT_FIND_NEXT(id, func) Find next button was pressed in the dialog.
EVT_FIND_REPLACE(id, func) Replace button was pressed in the dialog.
EVT_FIND_REPLACE_ALL(id, func) Replace all button was pressed in the dialog.
EVT_FIND_CLOSE(id, func) The dialog is being destroyed, any pointers to it cannot be used any longer.
Members

wxFindDialogEvent::wxFindDialogEvent
wxFindDialogEvent::GetFlags
wxFindDialogEvent::GetFindString
wxFindDialogEvent::GetReplaceString
wxFindDialogEvent::GetDialog


wxFindDialogEvent::wxFindDialogEvent

wxFindDialogEvent(wxEventType commandType = wxEVT_NULL, int id = 0)

Constuctor used by wxWidgets only.


wxFindDialogEvent::GetFlags

int GetFlags() const

Get the currently selected flags: this is the combination of wxFR_DOWN, wxFR_WHOLEWORD and wxFR_MATCHCASE flags.


wxFindDialogEvent::GetFindString

wxString GetFindString() const

Return the string to find (never empty).


wxFindDialogEvent::GetReplaceString

const wxString& GetReplaceString() const

Return the string to replace the search string with (only for replace and replace all events).


wxFindDialogEvent::GetDialog

wxFindReplaceDialog* GetDialog() const

Return the pointer to the dialog which generated this event.