wxTreeCtrl
Creation Parameters
- parent
- id (optional) [= -1]
- x (optional) [= -1]
- y (optional) [= -1]
- cx (optional) [= -1]
- cy (optional) [= -1]
- style (optional) [= wxTR_HAS_BUTTONS + wxTR_LINES_AT_ROOT ]
- wxTR_NO_BUTTONS = #0000, -- for convenience
- wxTR_HAS_BUTTONS = #0001, -- generates a +/- button
- wxTR_TWIST_BUTTONS = #0002, -- generates a twister button
- wxTR_NO_LINES = #0004, -- don't generate level connectors
- wxTR_LINES_AT_ROOT = #0008, -- connect top-level nodes
- wxTR_MAC_BUTTONS = wxTR_TWIST_BUTTONS, -- backward compatibility
- wxTR_AQUA_BUTTONS = #0010, -- used internally
- wxTR_SINGLE = #0000, -- for convenience
- wxTR_MULTIPLE = #0020, -- can select multiple items
- wxTR_EXTENDED = #0040, -- TODO: allow extended selection
- wxTR_FULL_ROW_HIGHLIGHT = #2000, -- highlight full horizontal space
- wxTR_EDIT_LABELS = #0200, -- can edit item labels
- wxTR_ROW_LINES = #0400, -- put border around items
- wxTR_HIDE_ROOT = #0800, -- don't display root node
- wxTR_HAS_VARIABLE_ROW_HEIGHT= #0080 -- what it says
When working with tree items, the id values returned are actually pointers to
wxTreeItem pointers. They are not unique ids. The value returned is a new wxTreeItemId,
which is a simple wxWidgets object. It is just a pointer to either a windows handle or a custom
data pointer. It is the duty of the application to free the wxTreeItemId.
Functions/Procedures
- func add_tree_item( atom tree, atom parent, sequence text, atom image, atom selimage )
- func add_tree_root( atom tree, sequence text, atom image, atom selimage )
- proc collapse_all_tree_children( atom tree, atom item )
- proc collapse_all_tree_items( atom tree )
- proc collapse_and_reset_tree_item( atom tree, atom item )
- proc collapse_tree_item( atom tree, atom item )
- proc delete_tree_children( atom tree, atom treeitem )
- proc delete_tree_item( atom tree, object item )
- proc edit_tree_item( atom tree, atom item )
- proc ensure_tree_item_visual( atom tree, atom item )
- proc expand_all_tree_children( atom tree, atom item )
- proc expand_tree( atom tree )
- proc expand_tree_item( atom tree, atom item )
- func get_first_tree_child( atom tree, atom item )
- func get_first_visible_tree_item( atom tree )
- func get_next_tree_child( atom tree, atom item, atom cookie )
- func get_next_tree_sibling( atom tree, atom item )
- func get_next_visible_tree_item( atom tree, atom item )
- func get_prev_tree_sibling( atom tree, atom item )
- func get_prev_visible_tree_item( atom tree, atom item )
- func get_tree_edit_control( atom tree )
- func get_tree_imagelist( atom tree )
- func get_tree_indent( atom tree )
- func get_tree_item_background_color( atom tree, atom item )
- func get_tree_item_bounding_rect( atom tree, atom item, atom text_only )
- func get_tree_item_children_count( atom tree, atom item, atom recursively )
- func get_tree_item_count( atom tree )
- func get_tree_item_font( atom tree, atom item )
- func get_tree_item_image( atom tree, atom item, atom which )
- func get_tree_item_text_color( atom tree, atom item )
- func get_tree_parent( atom tree, atom item )
- func get_tree_root( atom tree )
- func get_tree_selected_text( atom tree )
- func get_tree_selection( atom tree )
- func get_tree_selections( atom tree )
- func get_tree_text( atom tree, atom id )
- func insert_tree_item_after( atom tree, atom parent, atom previous, sequence text, atom image, atom sel_image )
- func insert_tree_item_before( atom tree, atom parent, atom before, sequence text, atom image, atom sel_image )
- func is_tree_empty( atom tree )
- func is_tree_item_bold( atom tree, atom item )
- func is_tree_item_expanded( atom tree, atom item )
- func is_tree_item_selected( atom tree, atom item )
- func is_tree_item_visible( atom tree, atom item )
- func prepend_tree_item( atom tree, atom parent, sequence text, atom image, atom sel_image )
- proc scroll_to_tree_item( atom tree, atom item )
- proc select_tree_item( atom tree, atom treeitem )
- proc set_tree_indent( atom tree, atom indent )
- proc set_tree_item_background( atom tree, atom item, atom color )
- proc set_tree_item_bold( atom tree, atom item, atom bold )
- proc set_tree_item_drop_highlight( atom tree, atom item, atom highlight )
- proc set_tree_item_font( atom tree, atom item, atom font )
- proc set_tree_item_has_children( atom tree, atom item, atom has_children )
- proc set_tree_item_image( atom tree, atom item, atom image, atom which )
- proc set_tree_item_text( atom tree, atom item, sequence text )
- proc set_tree_item_text_color( atom tree, atom item, atom color )
- proc sort_tree_children( atom tree, atom item )
- proc toggle_tree_item( atom tree, atom item )
- proc toggle_tree_item_selection( atom tree, atom item )
- func tree_hit_test( atom tree, atom x, atom y, atom flags )
- proc tree_imagelist( atom tree, atom il )
- func tree_item_has_children( atom tree, atom item )
- proc unselect_tree_item( atom tree, object items )
- func valid_tree_item( atom item )
Supertopics
Subtopics
wxTreeCtrl
[func]
add_tree_item ( atom tree, atom parent, sequence text, atom image, atom selimage )
Category:
wxTreeCtrl
- tree : The wxTreeCtrl in which the item will be added.
- parent : What the item will appear under. This can be an existing item, or the root.
- text : The text that will appear on the item.
- image : The image that will show when one of it's children is currently chosen.
- selImage : The image that will show when one of it's children is NOT currently chosen.
You must declare tree_imagelist before you can assign any images to image and
selimage. If you do not have one declared, use -1 for Image and SelImage
wxTreeCtrl
[func]
add_tree_root ( atom tree, sequence text, atom image, atom selimage )
Category:
wxTreeCtrl
- Tree : The wxTreeCtrl in which the item will be added.
- Text : The text to appear on the item.
- Image : The image that will show when one of it's children is clicked.
- SelImage : The image that will show when one of it's children is NOT currently chosen.
You must declare tree_imagelist before you can assign any images to image
and selimage. If you do not have a tree_imagelist declared, use -1 for image and selimage.
If you declare tree_imagelist, -1 will become it's first image and all
items will have an image beside them.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
This goes to a TreeCtrl specified by tree and deletes all children
under the specifed item.
wxTreeCtrl
Category:
wxTreeCtrl
Deletes one or all items from a wxTreeCtrl.
If item is an empty sequence, then all items are deleted, otherwise, item can be either
an integer or a sequence of item ids to be deleted.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
This returns an integer which serves as a stand_in for the item's
actual parent. You can set things to the pointer as if it were the
actual wxTreeCtrl item.
wxTreeCtrl
Category:
wxTreeCtrl
This returns an integer which serves as a stand_in for the
actual tree root. You can set things to the pointer as if it
were the actual wxTreeCtrl item.
wxTreeCtrl
Category:
wxTreeCtrl
This gets the text of whatever item is currently highlighted in the chosen wxTreeCtrl.
wxTreeCtrl
Category:
wxTreeCtrl
This returns an integer which serves as a stand_in for the
actual item. You can set things to the pointer as if it were
the actual wxTreeCtrl item.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
This goes to the specified tree and grabs the value of the
item, specified by it's ID.
wxTreeCtrl
[func]
insert_tree_item_after ( atom tree, atom parent, atom previous, sequence text, atom image, atom sel_image )
Category:
wxTreeCtrl
wxTreeCtrl
[func]
insert_tree_item_before ( atom tree, atom parent, atom before, sequence text, atom image, atom sel_image )
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
[func]
prepend_tree_item ( atom tree, atom parent, sequence text, atom image, atom sel_image )
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Returns atom
Category:
wxTreeCtrl
Sets the highlight to the specified tree item by using it's
actual id or an integer pointer that goes to it.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
Goes to the specified item inside of the specified wxTreeCtrl and sets the text in it to text.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
[func]
tree_hit_test ( atom tree, atom x, atom y, atom flags )
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
This sets the wxImagelist to the wxTreeCtrl, allowing the wxTreeCtrl's children to use it's icons.
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl
wxTreeCtrl
Category:
wxTreeCtrl