wxRuby Documentation Home

Wx::FindReplaceData

FindReplaceData holds the data for
FindReplaceDialog. It is used to initialize
the dialog with the default values and will keep the last values from the
dialog when it is closed. It is also updated each time a
FindDialogEvent is generated so instead of
using the FindDialogEvent methods you can also directly query this object.

Note that all SetXXX() methods may only be called before showing the
dialog and calling them has no effect later.

Derived from

Object

Data structures

Flags used by
FindReplaceData::GetFlags and
FindDialogEvent::GetFlags:

enum FindReplaceFlags { // downward search/replace selected (otherwise – upwards) FR_DOWN = 1, // whole word search/replace selected FR_WHOLEWORD = 2, // case sensitive search/replace selected (otherwise – case insensitive) FR_MATCHCASE = 4 }

These flags can be specified in
FindReplaceDialog ctor or
Create:

enum FindReplaceDialogStyles { // replace dialog (otherwise find dialog) FR_REPLACEDIALOG = 1, // don’t allow changing the search direction FR_NOUPDOWN = 2, // don’t allow case sensitive searching FR_NOMATCHCASE = 4, // don’t allow whole word searching FR_NOWHOLEWORD = 8 }

Methods

FindReplaceData.new

FindReplaceData.new(%(arg-type)Uint32% flags = 0)

Constuctor initializes the flags to default value ($0$).

FindReplaceData#get_find_string

String get_find_string()

Get the string to find.

FindReplaceData#get_replace_string

String get_replace_string()

Get the replacement string.

FindReplaceData#get_flags

Integer get_flags()

Get the combination of FindReplaceFlags values.

FindReplaceData#set_flags

set_flags(%(arg-type)Uint32% flags)

Set the flags to use to initialize the controls of the dialog.

FindReplaceData#set_find_string

set_find_string(%(arg-type)String% str)

Set the string to find (used as initial value by the dialog).

FindReplaceData#set_replace_string

set_replace_string(%(arg-type)String% str)

Set the replacement string (used as initial value by the dialog).

[This page automatically generated from the Textile source at 2023-06-13 21:31:42 +0000]