wxTextEntryDialog(3)
π NAME π
ok bestie, so wxTextEntryDialog β this is a class that pops up a dialog asking the user for a one-line text string. That's it, that's the whole job. One line. No novel-length input, just a lil string. π
β¨ DESCRIPTION β¨
It's implemented as a generic wxWidgets dialog β no cap.
π See also: Overview cmndlg
This class is derived from β and can absolutely use functions from β these icons:
wxDialogwxTopLevelWindowwxWindowwxEvtHandler
π wxWidgets docs: wxTextEntryDialog
π¦ DATA TYPES π¦
wxTextEntryDialog() :: wx:wx_object().
slay, it's just a wx:wx_object() and honestly that's the vibe π
πΈ FUNCTIONS πΈ
π destroy
destroy(This :: wxTextEntryDialog()) -> ok.
Destroys the object. yeah. gone. poof. it's giving cleanup era π§Ήβ¨
π getValue
getValue(This) -> unicode:charlist()
when This :: wxTextEntryDialog().
Returns the text the user typed in β but only if they hit OK. π If they pressed Cancel instead, you get back the original value. So no matter what, you're getting something back, not an error. lowkey merciful ngl π
π£ new
new() -> wxTextEntryDialog().
Default constructor. That's it. That's the constructor. β¨
β οΈ Calling this alone doesn't actually build the dialog yet β you gotta call Create() (not implemented in wx) afterward to really create the dialog later.
Since: 2.9.5 π°οΈ
π new/3
new(Parent, Message, [Option]) -> wxTextEntryDialog()
when
Parent :: wxWindow:wxWindow(),
Message :: unicode:chardata(),
Option ::
{caption, unicode:chardata()} |
{value, unicode:chardata()} |
{style, integer()} |
{pos, {X :: integer(), Y :: integer()}}.
Constructor β the one with β¨optionsβ¨. Here's the tea on the args:
Parent::wxWindow:wxWindow()β who's the parent window, bestieMessage::unicode:chardata()β the message you want to showOption:: a list of optional tuples, and they are:{caption, unicode:chardata()}{value, unicode:chardata()}{style, integer()}{pos, {X :: integer(), Y :: integer()}}
Use wxDialog:showModal/1 to actually show the dialog. π
For what all the parameters mean, go peek at the Create() method (not implemented in wx) β that's where the parameter description lives π
π setValue
setValue(This, Value) -> ok
when
This :: wxTextEntryDialog(),
Value :: unicode:chardata().
Sets the default text value. So like, pre-fill the box with whatever you want the user to see first. Iconic little convenience π
that's the whole page, bestie β wxTextEntryDialog from the Ericsson AB girlies, version wx 2.6, and yes it's still serving the classic wxTextEntryDialog(3) energy π β¨ go forth and collect exactly one (1) line of text π«Ά
π¦ 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