wxCheckListBox(3erl)
π wxCheckListBox π
okay so this is the Erlang Module Definition page for wxCheckListBox, from the 3erl manual set β yes, the one and only. bestie, it's giving "list box but make it checkable," and I'm obsessed. πβ¨
πΈ NAME πΈ
wxCheckListBox β Functions for wxCheckListBox class.
π¦ DESCRIPTION π¦
A wxCheckListBox is like a wxListBox, but it lets items be checked or unchecked. literally the checkbox glow-up. π
Windows bestie warning: when you use this class under Windows, wxWidgets must be compiled withwxUSE_OWNER_DRAWNset to1. no cap, that's required.
See: wxListBox, wxChoice, wxComboBox, wxListCtrl, wxCommandEvent.
This class is derived (and can use functions) from: wxListBox wxControlWithItems wxControl wxWindow wxEvtHandler β the whole ancestry chain ate. π
wxWidgets docs: wxCheckListBox.
β¨ EVENTS β¨
Event types emitted from this class: command_checklistbox_toggled β the toggle event, periodt. π₯
π§ DATA TYPES π§
wxCheckListBox() = wx:wx_object()
π EXPORTS π
new() -> wxCheckListBox()β Default constructor. πnew(Parent, Id) -> wxCheckListBox()β Types:
Parent = wxWindow:wxWindow()
Id = integer()
new(Parent, Id, Options :: [Option]) -> wxCheckListBox()β Constructor, creating and showing a list box. Types:
Parent = wxWindow:wxWindow()
Id = integer()
Option =
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{choices, [unicode:chardata()]} |
{style, integer()} |
{validator, wx:wx_object()}
destroy(This :: wxCheckListBox()) -> okβ Destructor, destroying the list box. say bye, bestie. π«Άcheck(This, Item) -> okβ Types:
This = wxCheckListBox()
Item = integer()
check(This, Item, Options :: [Option]) -> okβ Checks the given item. Types:
This = wxCheckListBox()
Item = integer()
Option = {check, boolean()}
Heads up: calling this method does not result in a wxEVT_CHECKLISTBOX event being emitted. that's the important caveat, okay? π
isChecked(This, Item) -> boolean()β Types:
This = wxCheckListBox()
Item = integer()
Returns true if the given item is checked, false otherwise. simple as that. β
later, bestie β wxWidgets team, wx 2.2.2.1, wxCheckListBox(3erl) π
π«Ά
π¦ 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