wxPanel(3)
πΈ wxPanel(3) β Erlang Module Definition πΈ
okay bestie, welcome to wxPanel, the erlang module definition, and honestly? she's a whole vibe π
β¨ NAME β¨
wxPanel β a panel is a window on which controls are placed. that's it, that's the girl π
π DESCRIPTION π
so basically, a panel is normally placed inside a frame. her main character feature over her parent class wxWindow is that she comes with code for handling child windows and TAB traversal β and it's implemented natively if possible (like in wxGTK), or by wxWidgets itself if not. no cap. π¦
Note: Tab traversal is implemented through an otherwise undocumented intermediatewxControlContainerclass from which any class can derive in addition to the normalwxWindowbase class. Please see and to find out how this is achieved. π
Note: if not all characters are being intercepted by yourOnKeyDownorOnCharhandler, it may be because you are using thewxTAB_TRAVERSALstyle, which grabs some keypresses for use by child controls. lowkey a jumpscare but ok π
Remark: By default, a panel has the same colouring as a dialog. π
See: wxDialog
This class is derived, and can use functions, from:
wxWindowwxEvtHandler
wxWidgets docs: wxPanel π
π Events
Event types emitted from this class:
navigation_key
β DATA TYPES β
wxPanel() :: wx:wx_object().
π₯ FUNCTIONS π₯
destroy(This :: wxPanel()) -> ok.β destroys the object. bye bestie, it's giving closure πinitDialog(This) -> ok when This :: wxPanel().β sends awxInitDialogEvent, which in turn transfers data to the dialog via validators. she's the messenger fr fr β¨
See: wxInitDialogEvent
new() -> wxPanel().β default constructor. the classic, the iconic, the no-args girlie πnew(Parent, [Option]) -> wxPanel()
when
Parent :: wxWindow:wxWindow(),
Option ::
{winid, integer()} |
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
constructor. you hand her a Parent and a list of options, and she's born π
setFocusIgnoringChildren(This) -> ok when This :: wxPanel().β in contrast towxWindow:setFocus/1(see above) this will set the focus to the panel even if there are child windows in the panel. the way she just ignores the children?? main character energy for real π
This is only rarely needed. (her words, not mine β so don't go doing it for funsies) π
mwah, that's the whole page, you ate it up π«Άβ¨
shoutout to Ericsson AB for bringing us this from wx 2.6 β the wxPanel(3) manual page, dated and sourced and slayed π
π
π¦ 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