wxClipboardTextEvent(3erl)
π NAME π
okay so bestie, welcome to wxClipboardTextEvent(3erl) β straight out of the Erlang Module Definition manual, and it's serving Functions for wxClipboardTextEvent class realness. β¨
π¦ DESCRIPTION π¦
This class represents the events generated by a control (typically a wxTextCtrl, but other windows can generate these events as well) when its content gets copied or cut to, or pasted from, the clipboard. π
There are three types of corresponding events:
wxEVT_TEXT_COPYwxEVT_TEXT_CUTwxEVT_TEXT_PASTE
If any of these events is processed (without being skipped) by an event handler, the corresponding operation doesn't take place β which allows preventing the text from being copied from or pasted to a control. π«Ά
It is also possible to examine the clipboard contents in the PASTE event handler and transform it in some way before inserting in a control β for example, changing its case or removing invalid characters. π
Finally notice that a CUT event is always preceded by the COPY event, which makes it possible to only process the latter if it doesn't matter if the text was copied or cut. no cap. π
β οΈ Note: These events are currently only generated bywxTextCtrlinwxGTKandwxOSXbut are also generated bywxComboBoxwithoutwxCB_READONLYstyle inwxMSW.
π See: wxClipboard
This class is derived (and can use functions) from: wxCommandEvent, wxEvent
π wxWidgets docs: wxClipboardTextEvent
π EVENTS π
Use wxEvtHandler:connect/3 with wxClipboardTextEventType to subscribe to events of this type. π§
π DATA TYPES π
Here's the exact shape of the data types, bestie β no cap, keep these literal:
wxClipboardTextEvent() = wx:wx_object()
wxClipboardText() =
#wxClipboardText{type =
wxClipboardTextEvent:wxClipboardTextEventType()}
wxClipboardTextEventType() =
command_text_copy | command_text_cut | command_text_paste
Byeee π this iconic lil page is brought to you by the wxWidgets team and wx 2.2.2.1 β source/version noted! The footer didn't give a date, so I'm not gonna invent one, periodt. π«Άπ
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms