wxFindReplaceDialog(3erl)

πŸŽ€ NAME πŸŽ€

wxFindReplaceDialog β€” functions for the wxFindReplaceDialog class, and yup bestie, this is the Erlang module definition page for wxFindReplaceDialog(3erl) πŸ’–


πŸ’… DESCRIPTION πŸ’…

Okay so wxFindReplaceDialog is a standard modeless dialog. Its whole thing is letting the user search for some text β€” and possibly replace it with something else ✨. It’s giving β€œfind and replace but make it a dialog,” and honestly? Iconic.

The actual searching is supposed to be done in the owner window, which is the parent of this dialog. The way that this works means that β€” unlike the other standard dialogs β€” this one must have a parent window. Also, there is no way to use this dialog in a modal way; it is always, by design and implementation, modeless. No cap, that’s just the vibe 🫢.

Please see the page_samples_dialogs sample for an example of using it.

This class is derived (and can use functions) from: wxDialog wxTopLevelWindow wxWindow wxEvtHandler.

wxWidgets docs: wxFindReplaceDialog.


🌈 DATA TYPES 🌈

wxFindReplaceDialog() = wx:wx_object()


✨ EXPORTS ✨

πŸ’– new() -> wxFindReplaceDialog()

No args, just a fresh dialog object. Slay.


πŸ’– new(Parent, Data, Title) -> wxFindReplaceDialog()

Types:

Parent = wxWindow:wxWindow()
Data = wxFindReplaceData:wxFindReplaceData()
Title = unicode:chardata()

πŸ’– new(Parent, Data, Title, Options :: [Option]) -> wxFindReplaceDialog()

Types:

Parent = wxWindow:wxWindow()
Data = wxFindReplaceData:wxFindReplaceData()
Title = unicode:chardata()
Option = {style, integer()}

After using default constructor create/5 must be called.

⚠️ The Parent and Data parameters must be non-NULL, bestie. Do not play with that.

πŸ’– destroy(This :: wxFindReplaceDialog()) -> ok

Destructor. It’s the goodbye era 😭.


πŸ’– create(This, Parent, Data, Title) -> boolean()

Types:

This = wxFindReplaceDialog()
Parent = wxWindow:wxWindow()
Data = wxFindReplaceData:wxFindReplaceData()
Title = unicode:chardata()

πŸ’– create(This, Parent, Data, Title, Options :: [Option]) -> boolean()

Types:

This = wxFindReplaceDialog()
Parent = wxWindow:wxWindow()
Data = wxFindReplaceData:wxFindReplaceData()
Title = unicode:chardata()
Option = {style, integer()}

Creates the dialog; use wxWindow:show/2 to show it on screen.

⚠️ Again: the Parent and Data parameters must be non-NULL.

πŸ’– getData(This) -> wxFindReplaceData:wxFindReplaceData()

Types:

This = wxFindReplaceDialog()

Get the wxFindReplaceData object used by this dialog. It’s literally giving you the data back, as one treats πŸ’….


Later, bestie! This page came from the wxWidgets team, with version wx 2.2.2.1, and it’s the wxFindReplaceDialog(3erl) manual page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from