wxFindReplaceData(3)
π wxFindReplaceData β the Erlang module, bestie edition β¨
okay so this is wxFindReplaceData(3) from the Erlang Module Definition corner of the wx universe. welcome, pull up a chair, we're gonna talk about the little object that holds all the find-and-replace vibes π
πΈ NAME πΈ
wxFindReplaceData β it's the data holder for wxFindReplaceDialog. that's it. that's the whole job. and it eats π
β¨ DESCRIPTION β¨
So here's the tea π: this object is used to initialize the dialog with the default values, and it also keeps the last values from the dialog when it is closed. She's a keeper, literally. She remembers.
She's also updated each time a wxFindDialogEvent (not implemented in wx) is generated. which means β and this is the slay part β instead of using the wxFindDialogEvent (not implemented in wx) methods you can also directly query this object. no middleman, no drama, just ask her directly π«Ά
β οΈ MAJOR CAVEAT, DO NOT SKIP THIS ONE: note that all SetXXX() methods may only be called before showing the dialog and calling them has no effect later. like, they just do nothing. silently. the audacity π so set your stuff up first, then show the dialog. periodt.
wxWidgets docs: wxFindReplaceData β iykyk, go read those too π
π¦ DATA TYPES π¦
wxFindReplaceData()β this is:: wx:wx_object(). cute, right? standard wx object energy π
π FUNCTIONS π
π« destroy(This :: wxFindReplaceData()) -> ok
Destroys the object. bye bestie, thank you for your service πβ¨
She's gone. no cap.
π« getFindString(This) -> unicode:charlist() when This :: wxFindReplaceData()
Get the string to find. the whole reason we're here, honestly πβ¨
π« getFlags(This) -> integer() when This :: wxFindReplaceData()
Get the combination of wxFindReplaceFlags values. all the little toggles, bundled up in one integer, iconic π
π« getReplaceString(This) -> unicode:charlist() when This :: wxFindReplaceData()
Get the replacement string. the glow-up string. the "new you" string π
π« new([Option]) -> wxFindReplaceData() when Option :: {flags, integer()}
Constructor π β and here's the key detail: it initializes the flags to default value (0). so if you don't pass anything, she starts at zero, fresh-faced and unbothered.
π« setFindString(This, Str) -> ok when This :: wxFindReplaceData(), Str :: unicode:chardata()
Set the string to find β this is used as initial value by the dialog. so you prep her, then she walks in and delivers π₯
π« setFlags(This, Flags) -> ok when This :: wxFindReplaceData(), Flags :: integer()
Set the flags to use to initialize the controls of the dialog. you're picking how the checkboxes and widgets wake up in the morning β
π« setReplaceString(This, Str) -> ok when This :: wxFindReplaceData(), Str :: unicode:chardata()
Set the replacement string β also used as initial value by the dialog. fill her in, then let her cook π§
π«Ά reminder from above because it's that important: every SetXXX() in here has to happen before showing the dialog. after that? no effect. set it early or set it never, bestie π
π SEE ALSO π
nothing extra listed here, just the wxWidgets docs: wxFindReplaceData link up in the DESCRIPTION β¨ go click it, it's giving documentation π
that's the whole page, you ate it, you understood it, I'm so proud ππ
kisses, this was the wxFindReplaceData(3) page, brought to you by Ericsson AB for wx 2.6 β dated from the wx 2.6 era, and yes she's still iconic πβ¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms