wxTreeCtrl(3erl)

🌳 wxTreeCtrl(3erl) β€” Erlang Module Definition

okay bestie, welcome to the wxTreeCtrl(3erl) page πŸ’– this is part 1, and it’s giving tree control lore, hierarchy realness, and a whole lot of item handles. no cap, it’s useful.

🌸 NAME 🌸

wxTreeCtrl - Functions for wxTreeCtrl class

πŸ’– DESCRIPTION πŸ’–

A tree control presents information as a hierarchy, with items that may be expanded to show further items. Items in a tree control are referenced by wxTreeItemId (not implemented in wx) handles, which may be tested for validity by calling wxTreeItemId::IsOk() (not implemented in wx).

A similar control with a fully native implementation for GTK+ and macOS as well is wxDataViewTreeCtrl (not implemented in wx).

To intercept events from a tree control, use the event table macros described in wxTreeEvent.

✨ Styles ✨

This class supports the following styles:

See also overview_windowstyles.

πŸͺŸ Win32 notes:

wxTreeCtrl class uses the standard common treeview control under Win32 implemented in the system library comctl32.dll. Some versions of this library are known to have bugs with handling the tree control colours: the usual symptom is that the expanded items leave black (or otherwise incorrectly coloured) background behind them, especially for the controls using non-default background colour. The recommended solution is to upgrade the comctl32.dll to a newer version: see http://www.microsoft.com/downloads/details.aspx?familyid=cb2cf3a2-8025-4e8f-8511-9b476a8d35d2

See: wxDataViewTreeCtrl (not implemented in wx), wxTreeEvent, wxTreeItemData (not implemented in wx), Overview treectrl, wxListBox, wxListCtrl, wxImageList

This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler

wxWidgets docs: wxTreeCtrl

πŸ¦‹ EVENTS πŸ¦‹

Event types emitted from this class:

  • command_tree_begin_drag
  • command_tree_begin_rdrag
  • command_tree_end_drag
  • command_tree_begin_label_edit
  • command_tree_end_label_edit
  • command_tree_delete_item
  • command_tree_get_info
  • command_tree_set_info
  • command_tree_item_activated
  • command_tree_item_collapsed
  • command_tree_item_collapsing
  • command_tree_item_expanded
  • command_tree_item_expanding
  • command_tree_item_right_click
  • command_tree_item_middle_click
  • command_tree_sel_changed
  • command_tree_sel_changing
  • command_tree_key_down
  • command_tree_item_gettooltip
  • command_tree_item_menu
  • command_tree_state_image_click

πŸ“ DATA TYPES πŸ“

wxTreeCtrl() = wx:wx_object()

πŸ‘‘ EXPORTS πŸ‘‘

new() -> wxTreeCtrl()

Default Constructor.

new(Parent) -> wxTreeCtrl()

Types:

Parent = wxWindow:wxWindow()

new(Parent, Options :: [Option]) -> wxTreeCtrl()

Types:

Parent = wxWindow:wxWindow()
Option =
    {id, integer()} |
    {pos, {X :: integer(), Y :: integer()}} |
    {size, {W :: integer(), H :: integer()}} |
    {style, integer()} |
    {validator, wx:wx_object()}

Constructor, creating and showing a tree control.

See: create/3, wxValidator (not implemented in wx)

destroy(This :: wxTreeCtrl()) -> ok

Destructor, destroying the tree control.

addRoot(This, Text) -> integer()

Types:

This = wxTreeCtrl()
Text = unicode:chardata()

addRoot(This, Text, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Text = unicode:chardata()
Option =
    {image, integer()} |
    {selectedImage, integer()} |
    {data, term()}

Adds the root node to the tree, returning the new item.

The image and selImage parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If image > -1 and selImage is -1, the same image is used for both selected and unselected items.

appendItem(This, Parent, Text) -> integer()

Types:

This = wxTreeCtrl()
Parent = integer()
Text = unicode:chardata()

appendItem(This, Parent, Text, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Parent = integer()
Text = unicode:chardata()
Option =
    {image, integer()} |
    {selectedImage, integer()} |
    {data, term()}

Appends an item to the end of the branch identified by parent, return a new item id.

The image and selImage parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If image > -1 and selImage is -1, the same image is used for both selected and unselected items.

assignImageList(This, ImageList) -> ok

Types:

This = wxTreeCtrl()
ImageList = wxImageList:wxImageList()

Sets the normal image list.

The image list assigned with this method will be automatically deleted by wxTreeCtrl as appropriate (i.e. it takes ownership of the list).

See: setImageList/2

assignStateImageList(This, ImageList) -> ok

Types:

This = wxTreeCtrl()
ImageList = wxImageList:wxImageList()

Sets the state image list.

Image list assigned with this method will be automatically deleted by wxTreeCtrl as appropriate (i.e. it takes ownership of the list).

See: setStateImageList/2

collapse(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Collapses the given item.

collapseAndReset(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Collapses the given item and removes all children.

create(This, Parent) -> boolean()

Types:

This = wxTreeCtrl()
Parent = wxWindow:wxWindow()

create(This, Parent, Options :: [Option]) -> boolean()

Types:

This = wxTreeCtrl()
Parent = wxWindow:wxWindow()
Option =
    {id, integer()} |
    {pos, {X :: integer(), Y :: integer()}} |
    {size, {W :: integer(), H :: integer()}} |
    {style, integer()} |
    {validator, wx:wx_object()}

Creates the tree control.

See new/2 for further details.

delete(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Deletes the specified item.

A EVT_TREE_DELETE_ITEM event will be generated.

This function may cause a subsequent call to getNextChild/3 to fail.

deleteAllItems(This) -> ok

Types:

This = wxTreeCtrl()

Deletes all items in the control.

This function generates wxEVT_TREE_DELETE_ITEM events for each item being deleted, including the root one if it is shown, i.e. unless wxTR_HIDE_ROOT style is used.

deleteChildren(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Deletes all children of the given item (but not the item itself).

A wxEVT_TREE_DELETE_ITEM event will be generated for every item being deleted.

If you have called setItemHasChildren/3, you may need to call it again since deleteChildren/2 does not automatically clear the setting.

editLabel(This, Item) -> wxTextCtrl:wxTextCtrl()

Types:

This = wxTreeCtrl()
Item = integer()

Starts editing the label of the given item.

This function generates a EVT_TREE_BEGIN_LABEL_EDIT event which can be vetoed so that no text control will appear for in-place editing.

If the user changed the label β€” i.e. s/he does not press ESC or leave the text control without changes β€” a EVT_TREE_END_LABEL_EDIT event will be sent, and that can be vetoed as well.

See: EndEditLabel() (not implemented in wx), wxTreeEvent

ensureVisible(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Scrolls and/or expands items to ensure that the given item is visible.

This method can be used, and will work, even while the window is frozen (see wxWindow:freeze/1).

expand(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Expands the given item.

getBoundingRect(This, Item) -> Result

Types:

Result =
    {Res :: boolean(),
     Rect ::
         {X :: integer(),
          Y :: integer(),
          W :: integer(),
          H :: integer()}}
This = wxTreeCtrl()
Item = integer()

getBoundingRect(This, Item, Options :: [Option]) -> Result

Types:

Result =
    {Res :: boolean(),
     Rect ::
         {X :: integer(),
          Y :: integer(),
          W :: integer(),
          H :: integer()}}
This = wxTreeCtrl()
Item = integer()
Option = {textOnly, boolean()}

Retrieves the rectangle bounding the item.

If textOnly is true, only the rectangle around the item's label will be returned, otherwise the item's image is also taken into account.

The return value is true if the rectangle was successfully retrieved or false if it was not (in this case rect is not changed) - for example, if the item is currently invisible.

Notice that the rectangle coordinates are logical, not physical ones. So, for example, the x coordinate may be negative if the tree has a horizontal scrollbar and its position is not 0.

getChildrenCount(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

getChildrenCount(This, Item, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()
Option = {recursively, boolean()}

Returns the number of items in the branch.

If recursively is true, returns the total number of descendants, otherwise only one level of children is counted.

getCount(This) -> integer()

Types:

This = wxTreeCtrl()

Returns the number of items in the control.

getEditControl(This) -> wxTextCtrl:wxTextCtrl()

Types:

This = wxTreeCtrl()

Returns the edit control being currently used to edit a label.

Returns NULL if no label is being edited.

Note: this is currently only implemented for wxMSW. Yeah. Only Windows. We don't make the rules 😭

getFirstChild(This, Item) -> Result

Types:

Result = {Res :: integer(), Cookie :: integer()}
This = wxTreeCtrl()
Item = integer()

Returns the first child β€” and then you call getNextChild/3 to keep going down the line.

Okay so for these enumeration functions you must pass in a 'cookie' parameter. It's opaque to your app, which basically means: don't look at it, don't touch it, don't ask what's inside πŸ’… β€” the library needs it so these functions can be reentrant (i.e. so you can have more than one enumeration running on one and the same object at the same time). The cookie you hand to getFirstChild/2 and getNextChild/3 has to be the same variable. Same one. Don't mix them up.

Returns an invalid tree item (i.e. wxTreeItemId::IsOk() (not implemented in wx) returns false) if there are no further children.

See: getNextChild/3, getNextSibling/2


Types:

Result = {Res :: integer(), Cookie :: integer()}
This = wxTreeCtrl()
Item = Cookie = integer()

Returns the next child β€” but start with getFirstChild/2 for the first one, obviously πŸŽ€

For this enumeration function you must pass in a 'cookie' parameter which is opaque for the application but is necessary for the library to make these functions reentrant (i.e. allow more than one enumeration on one and the same object simultaneously). The cookie passed to getFirstChild/2 and getNextChild/3 should be the same.

Returns an invalid tree item if there are no further children.

See: getFirstChild/2


getFirstVisibleItem(This) -> integer()

Types:

This = wxTreeCtrl()

Returns the first visible item. Like, the actual top of what your eyeballs can see on screen πŸ‘€


getImageList(This) -> wxImageList:wxImageList()

Types:

This = wxTreeCtrl()

Returns the normal image list. The regular one. Not the state one, not the weird one. The normal one ✨


getIndent(This) -> integer()

Types:

This = wxTreeCtrl()

Returns the current tree control indentation. That's the little step-in per level, the thing that makes a tree look like a tree and not a list πŸ¦‹


getItemBackgroundColour(This, Item) -> wx:wx_colour4()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the background colour of the item. Slay, colours 🌈


getItemData(This, Item) -> term()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the tree item data associated with the item.

See: wxTreeItemData (not implemented in wx)


getItemFont(This, Item) -> wxFont:wxFont()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the font of the item label.

If the font hadn't been explicitly set for the specified item with setItemFont/3, returns an invalid ?wxNullFont font. And heads up: you can use wxWindow:getFont/1 to retrieve the global tree control font used for the items without any specific font. iykyk πŸ’…


getItemImage(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

getItemImage(This, Item, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()
Option = {which, wx:wx_enum()}

Gets the specified item image.

The value of which may be:

and then the page just... stops πŸ’€ no list, no values, nothing. That's it. That's the sentence. We're all just living here now.

getItemText(This, Item) -> unicode:charlist()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the item label. The text your user actually reads 🫢


getItemTextColour(This, Item) -> wx:wx_colour4()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the colour of the item label.


getLastChild(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the last child of the item (or an invalid tree item if this item has no children). Like oldest sibling but in tree form 🧚

See: getFirstChild/2, getNextSibling/2, getLastChild/2


getNextSibling(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the next sibling of the specified item; call getPrevSibling/2 for the previous sibling.

Returns an invalid tree item if there are no further siblings.

See: getPrevSibling/2


getNextVisible(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the next visible item or an invalid item if this item is the last visible one.

Note: the item itself must be visible. This is not a suggestion, bestie, it's a requirement πŸ’€

getItemParent(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the item's parent. Find your roots, literally 🌸


getPrevSibling(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the previous sibling of the specified item; call getNextSibling/2 for the next sibling.

Returns an invalid tree item if there are no further children.

See: getNextSibling/2


getPrevVisible(This, Item) -> integer()

Types:

This = wxTreeCtrl()
Item = integer()

Returns the previous visible item or an invalid item if this item is the first visible one.

Note: the item itself must be visible. Same deal as before, no cap πŸ™ˆ

getRootItem(This) -> integer()

Types:

This = wxTreeCtrl()

Returns the root item for the tree control. The main character of the whole tree πŸ‘‘


getSelection(This) -> integer()

Types:

This = wxTreeCtrl()

Returns the selection, or an invalid item if there is no selection.

Big caveat time: this function only works with the controls without wxTR_MULTIPLE style. So use getSelections/1 for the controls which do have this style or, if a single item is wanted, use GetFocusedItem() (not implemented in wx). Read the room before you call it, okay? ⭐


getSelections(This) -> Result

Types:

Result = {Res :: integer(), Selection :: [integer()]}
This = wxTreeCtrl()

Fills the array of tree items passed in with the currently selected items. Plural. Many. A whole vibe.

This function can be called only if the control has the wxTR_MULTIPLE style. No style, no call, no exceptions πŸ”₯

Returns the number of selected items.


getStateImageList(This) -> wxImageList:wxImageList()

Types:

This = wxTreeCtrl()

Returns the state image list (from which application-defined state images are taken). Not the normal one β€” the state one. Different girl entirely πŸ’…


hitTest(This, Point) -> Result

Types:

Result = {Res :: integer(), Flags :: integer()}
This = wxTreeCtrl()
Point = {X :: integer(), Y :: integer()}

Calculates which (if any) item is under the given point, returning the tree item id at this point plus extra information flags.

flags is a bitlist of the following:

...and nothing. The list of flags is just not here 😭 the original page leaves us on a cliffhanger. Iconic of it honestly.

insertItem(This, Parent, Previous, Text) -> integer()

Types:

This = wxTreeCtrl()
Parent = Previous = integer()
Text = unicode:chardata()

insertItem(This, Parent, Previous, Text, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Parent = Previous = integer()
Text = unicode:chardata()
Option =
    {image, integer()} | {selImage, integer()} | {data,
term()}

Inserts an item after a given one (previous).

The image and selImage parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If image > -1 and selImage is -1, the same image is used for both selected and unselected items. Convenient! We love a shortcut πŸŽ€


isBold(This, Item) -> boolean()

Types:

This = wxTreeCtrl()
Item = integer()

Returns true if the given item is in bold state. Bold = bold. Simple as that.

See: setItemBold/3


isExpanded(This, Item) -> boolean()

Types:

This = wxTreeCtrl()
Item = integer()

Returns true if the item is expanded (only makes sense if it has children). If it's a leaf, expanding means nothing, bestie πŸ“


isSelected(This, Item) -> boolean()

Types:

This = wxTreeCtrl()
Item = integer()

Returns true if the item is selected.


isVisible(This, Item) -> boolean()

Types:

This = wxTreeCtrl()
Item = integer()

Returns true if the item is visible on the screen. On the screen specifically. On screen. Visible βœ…


itemHasChildren(This, Item) -> boolean()

Types:

This = wxTreeCtrl()
Item = integer()

Returns true if the item has children.


isTreeItemIdOk(Item) -> boolean()

Types:

Item = integer()

Returns true if the item is valid. Note there's no This here β€” this one doesn't even need the control, it just checks the id 🌈


prependItem(This, Parent, Text) -> integer()

Types:

This = wxTreeCtrl()
Parent = integer()
Text = unicode:chardata()

prependItem(This, Parent, Text, Options :: [Option]) -> integer()

Types:

This = wxTreeCtrl()
Parent = integer()
Text = unicode:chardata()
Option =
    {image, integer()} |
    {selectedImage, integer()} |
    {data, term()}

Appends an item as the first child of parent, return a new item id. (Yes, it's called prepend and the description says appends β€” we don't make the rules, we just report them πŸ’€)

The image and selImage parameters are an index within the normal image list specifying the image to use for unselected and selected items, respectively. If image > -1 and selImage is -1, the same image is used for both selected and unselected items.


scrollTo(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Scrolls the specified item into view. Bring it to the people ✨

Note that this method doesn't work while the window is frozen (See wxWindow:freeze/1), at least under MSW. So like, unfreeze first. Obviously.

See: ensureVisible/2


selectItem(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

selectItem(This, Item, Options :: [Option]) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Option = {select, boolean()}

Selects the given item.

In multiple selection controls, can be also used to deselect a currently selected item if the value of select is false. Toggle queen behavior πŸ‘‘

Notice that calling this method will generate wxEVT_TREE_SEL_CHANGING and wxEVT_TREE_SEL_CHANGED events β€” and heads up bestie, the change could literally get vetoed by the former event handler 😀 so don't come crying to me if your selection just… doesn't happen.


setIndent(This, Indent) -> ok

Types:

This = wxTreeCtrl()
Indent = integer()

Sets the indentation for the tree control πŸ’… how far in each level sits. Aesthetic choices, we love them.

setImageList(This, ImageList) -> ok

Types:

This = wxTreeCtrl()
ImageList = wxImageList:wxImageList()

Sets the normal image list ✨ the everyday icons, the main character icons.

⚠️ Big warning, no cap: the image list you assign with this method will not be deleted by wxTreeCtrl's destructor. You gotta delete it yourself, bestie. It's giving "I brought you into this world and I will not be the one to clean up after you" 🫠

See also: assignImageList/2

setItemBackgroundColour(This, Item, Col) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Col = wx:wx_colour()

Sets the colour of the item's background 🎨 slay.

setItemBold(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

setItemBold(This, Item, Options :: [Option]) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Option = {bold, boolean()}

Makes the item appear in bold font when the bold parameter is true, or resets it right back to the normal state. Bold = main character energy, tbh πŸ‘‘

See also: isBold/2

setItemData(This, Item, Data) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Data = term()

Sets the item client data πŸ“ your little personal payload attached to an item.

πŸ’€ Ok so listen: the client data previously associated with the item (if there was any) is not freed by this function. So if you call this multiple times for the same item, you will literally get memory leaks unless you delete the old item data pointer yourself. Not me warning you twice. πŸ™ˆ

setItemDropHighlight(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

setItemDropHighlight(This, Item, Options :: [Option]) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Option = {highlight, boolean()}

Gives the item the visual feedback for Drag'n'Drop actions πŸ¦‹ β€” which is lowkey useful if something is being dragged from outside onto the tree control (as opposed to a DnD operation happening within the tree control, which is already implemented internally, so it's handled, bestie, it's fine).

setItemFont(This, Item, Font) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Font = wxFont:wxFont()

Sets the item's font ✍️.

Heads up though: all items in the tree should have the same height to avoid text clipping 😭 so the font's height should match across all of them β€” font attributes may vary, but the height? Keep it consistent, fr fr.

See also: setItemBold/3

setItemHasChildren(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

setItemHasChildren(This, Item, Options :: [Option]) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Option = {has, boolean()}

Force appearance of the button next to the item πŸ‘€ yes, the little expandy arrow. It's fake it till you make it.

This is useful to let the user expand items that don't have any children right now, but you'll add them only when needed β€” thus minimizing memory usage and loading time. Efficiency queen behavior ⭐

setItemImage(This, Item, Image) -> ok

Types:

This = wxTreeCtrl()
Item = Image = integer()

setItemImage(This, Item, Image, Options :: [Option]) -> ok

Types:

This = wxTreeCtrl()
Item = Image = integer()
Option = {which, wx:wx_enum()}

Sets the specified item's image πŸŽ€.

See getItemImage/3 for the whole description of the which parameter β€” iykyk.

setItemText(This, Item, Text) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Text = unicode:chardata()

Sets the item label πŸ’¬ the actual words. The content. The lore.

setItemTextColour(This, Item, Col) -> ok

Types:

This = wxTreeCtrl()
Item = integer()
Col = wx:wx_colour()

Sets the colour of the item's text 🌈 cute.

setStateImageList(This, ImageList) -> ok

Types:

This = wxTreeCtrl()
ImageList = wxImageList:wxImageList()

Sets the state image list (the one from which application-defined state images are taken) ✨.

🫠 Same deal as before, and I need you to hear me: the image list assigned with this method will not be deleted by wxTreeCtrl's destructor. You must delete it yourself.

See also: assignStateImageList/2

setWindowStyle(This, Styles) -> ok

Types:

This = wxTreeCtrl()
Styles = integer()

Sets the mode flags associated with the display of the tree control πŸŽ›οΈ.

The new mode takes effect immediately β€” instant, iconic.

Note: Generic only; MSW ignores changes. Yup. It just ignores you. Rude.

sortChildren(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Sorts the children of the given item using OnCompareItems() (not implemented in wx) πŸ”€.

You should override that method to change the sort order (the default is ascending case-sensitive alphabetical order, fyi).

See also: wxTreeItemData (not implemented in wx), OnCompareItems() (not implemented in wx)

toggle(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Toggles the given item between collapsed and expanded states πŸͺ— in and out, in and out.

toggleItemSelection(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Toggles the given item between selected and unselected states πŸ’–.

For multiselection controls only, bestie. Read the room.

unselect(This) -> ok

Types:

This = wxTreeCtrl()

Removes the selection from the currently selected item (if any) πŸ™…β€β™€οΈ bye selection, we hardly knew ye.

unselectAll(This) -> ok

Types:

This = wxTreeCtrl()

This function either behaves the same as unselect/1 if the control doesn't have the wxTR_MULTIPLE style, or removes the selection from all items if it does have this style. Mass unselections, we stan 🧹

unselectItem(This, Item) -> ok

Types:

This = wxTreeCtrl()
Item = integer()

Unselects the given item 🎯.

This works in multiselection controls only. Again. Multiselect only. Don't try it on a single-select control, it's not gonna slay.


And that's a wrap on wxTreeCtrl(3erl) πŸ’œ go forth and build the prettiest, most well-indented, memory-leak-free tree control of your dreams. Remember: delete your own image lists, keep your font heights consistent, and never trust MSW to honor a style change. Periodt. 🌸🫢

Made with love by the wxWidgets team β€” this page is from wx 2.2.2.1, the wxTreeCtrl(3erl) manpage, and it's dated as shown in the original footer. Go be iconic βœ¨πŸ‘‘

πŸ“¦ where this page comes from