wFindReplaceDialog is a standard modeless dialog which is used to allow the user to search for some text (and possibly replace it with something else). Note that unlike for the other standard dialogs this one must have a owner window. Also note that there is no way to use this dialog in a modal way; it is always, by design and implementation, modeless.
Flags: | Flags | Description |
wFrReplace | Replace dialog (otherwise find dialog). |
wFrNoUpdown | Disables the search direction radio buttons (find dialog). |
wFrNoMatchcase | Disables the match case check box. |
wFrNoWholeword | Disables the whole word check box. |
wFrHideUpdown | Hides the search direction radio buttons (find dialog). |
wFrHideMatchcase | Hides the match case check box. |
wFrHideWholeword | Hides the whole word check box. |
wFrDown | The down button of the direction radio buttons is selected. |
wFrWholeword | The whole word check box is selected. |
wFrMatchcase | The match case check box is selected. |
|
Events: | wDialogEventwDialogEvent | Description |
wEvent_DialogCreated | When the dialog is created but not yet shown. |
wEvent_DialogClosed | When the dialog is being closed. |
wEvent_DialogHelp | When the Help button is pressed. |
wEvent_FindNext | When find next button was pressed. |
wEvent_Replace | When replace button was pressed. |
wEvent_ReplaceAll | When replace all button was pressed . |
|
proc setFlags(self: wFindReplaceDialog; flags: int) {...}{.inline, raises: [], tags: [].}
-
Set the flags to use to initialize the controls of the dialog.
proc getFlags(self: wFindReplaceDialog): int {...}{.inline, raises: [], tags: [].}
-
Get the combination of flag values.
proc setFindString(self: wFindReplaceDialog; str: string) {...}{.inline,
raises: [IndexDefect], tags: [].}
-
Set the string to find (used as initial value by the dialog).
proc getFindString(self: wFindReplaceDialog): string {...}{.inline, raises: [], tags: [].}
-
Get the string to find.
proc setReplaceString(self: wFindReplaceDialog; str: string) {...}{.inline,
raises: [IndexDefect], tags: [].}
-
Set the replacement string (used as initial value by the dialog).
proc getReplaceString(self: wFindReplaceDialog): string {...}{.inline, raises: [], tags: [].}
-
Get the replacement string.
proc isDownward(self: wFindReplaceDialog): bool {...}{.inline, raises: [], tags: [].}
-
Check whether downward search/replace selected.
proc isWholeword(self: wFindReplaceDialog): bool {...}{.inline, raises: [], tags: [].}
-
Check whether whole word search/replace selected.
proc isMatchcase(self: wFindReplaceDialog): bool {...}{.inline, raises: [], tags: [].}
-
Case whether sensitive search/replace selected.
proc enableHelp(self: wFindReplaceDialog; flag = true) {...}{.raises: [], tags: [].}
-
Display a Help button, the dialog got wEvent_DialogHelp event when the button pressed.
proc init(self: wFindReplaceDialog; owner: wWindow; flags: int = 0) {...}{.
raises: [wNilAccess, wWindowError, wCursorError, IndexDefect, wFontError],
tags: [RootEffect].}
-
Initializer.
proc FindReplaceDialog(owner: wWindow; flags: int = 0): wFindReplaceDialog {...}{.inline,
discardable,
raises: [wNilAccess, wWindowError, wCursorError, IndexDefect, wFontError],
tags: [RootEffect].}
-
Constructor.
proc showModaless(self: wFindReplaceDialog) {...}{.raises: [], tags: [].}
-
Shows the dialog in modaless mode. The frame of this dialog will recieve wEvent_DialogClosed event when the dialog is closed.