wxMDIClientWindow(3erl)
π wxMDIClientWindow π
okay bestie, welcome to the wxMDIClientWindow page β the Erlang module definition for the wxMDIClientWindow class. yes, it's an Erlang module doc, and yes, you're gonna get it. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
wxMDIClientWindow β literally just the functions for the wxMDIClientWindow class. that's the whole vibe. π
πΈ DESCRIPTION πΈ
okay so picture this: an MDI client window is a child of wxMDIParentFrame, and it manages zero or more wxMDIChildFrame objects. like a very organized babysitter for windows. π
the client window is the area where MDI child windows exist. it doesn't have to cover the whole parent frame β ngl, other windows such as toolbars and a help window might coexist with it. there can be scrollbars on a client window, and those are controlled by the parent window style. iykyk. β¨
the wxMDIClientWindow class is usually adequate without further derivation, and honestly? it gets created automatically when the MDI parent frame is created. no cap. but if your application needs to derive a new class, the function wxMDIParentFrame::OnCreateClient() (not implemented in wx β important!!) must be overridden in order to give an opportunity to use a different class of client window.
under wxMSW, the client window will automatically have a sunken border style when the active child is not maximized, and no border style when a child is maximized. it's giving adaptive. π
See: wxMDIChildFrame, wxMDIParentFrame, wxFrame
this class is derived (and can use functions) from: wxWindow wxEvtHandler β so it's got main character energy and an inheritance tree. π
wxWidgets docs: wxMDIClientWindow
π¦ DATA TYPES π¦
wxMDIClientWindow()=wx:wx_object()β yep, that's the type. it's an object. slay.
π₯ EXPORTS π₯
β new() -> wxMDIClientWindow()
the default constructor, bestie.
heads up: objects of this class are only created bywxMDIParentFrame, which uses the default constructor and callscreateClient/3immediately afterwards. so like... you don't really call this yourself. it's not me being gatekeepy, that's just the rules. π
β createClient(This, Parent) -> boolean()
Types:
This = wxMDIClientWindow()
Parent = wxMDIParentFrame:wxMDIParentFrame()
β createClient(This, Parent, Options :: [Option]) -> boolean()
Types:
This = wxMDIClientWindow()
Parent = wxMDIParentFrame:wxMDIParentFrame()
Option = {style, integer()}
called by wxMDIParentFrame immediately after creating the client window. like, immediately immediately. π₯
this function may be overridden in the derived class β but the base class version must usually be called first to actually create the window. fr fr, don't skip the base call, that's the whole point. π
β destroy(This :: wxMDIClientWindow()) -> ok
destroys the object. bye bestie ππ returns ok, because of course it does.
β οΈ quick vibe check: wxMDIParentFrame::OnCreateClient() is not implemented in wx β the docs say so, and i'm not about to start lying to you. π«Ά
okay that's the whole page!! written by the wxWidgets team, version wx 2.2.2.1, and it's the wxMDIClientWindow(3erl) man page β mwah, go build something iconic πβ¨π
π¦ 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