TreeCtrl Class Reference

Inheritance diagram for TreeCtrl:

Control Window EvtHandler wxObject IDisposable

List of all members.

Public Member Functions

 this (IntPtr wxobj)
 this ()
 this (Window parent, int id, Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT, Validator val=null, string name=wxTreeCtrlNameStr)
 this (Window parent, Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT, Validator val=null, string name=wxTreeCtrlNameStr)
bool Create (Window parent, int id, inout Point pos, inout Size size, int style, Validator val, string name)
virtual int OnCompareItems (TreeItemId item1, TreeItemId item2)
TreeItemId AddRoot (string text)
TreeItemId AddRoot (string text, int image)
TreeItemId AddRoot (string text, int image, int selImage)
TreeItemId AddRoot (string text, int image, int selImage, TreeItemData data)
TreeItemId AppendItem (TreeItemId parentId, string text)
TreeItemId AppendItem (TreeItemId parentId, string text, int image)
TreeItemId AppendItem (TreeItemId parentId, string text, int image, int selImage)
TreeItemId AppendItem (TreeItemId parentId, string text, int image, int selImage, TreeItemData data)
void AssignImageList (ImageList imageList)
void AssignStateImageList (ImageList imageList)
ImageList imageList ()
void imageList (ImageList value)
void SetImageList (ImageList imageList)
ImageList StateImageList ()
void StateImageList (ImageList value)
void SetItemImage (TreeItemId item, int image)
void SetItemImage (TreeItemId item, int image, TreeItemIcon which)
int GetItemImage (TreeItemId item)
int GetItemImage (TreeItemId item, TreeItemIcon which)
void DeleteAllItems ()
void Delete (TreeItemId item)
void DeleteChildren (TreeItemId item)
void Unselect ()
void UnselectAll ()
bool IsSelected (TreeItemId item)
void SelectItem (TreeItemId item)
TreeItemId Selection ()
void Selection (TreeItemId value)
void SetItemText (TreeItemId item, string text)
string GetItemText (TreeItemId item)
void SetItemData (TreeItemId item, TreeItemData data)
TreeItemData GetItemData (TreeItemId item)
TreeItemId HitTest (Point pt, out int flags)
TreeItemId RootItem ()
TreeItemId GetItemParent (TreeItemId item)
TreeItemId GetFirstChild (TreeItemId item, inout IntPtr cookie)
TreeItemId GetNextChild (TreeItemId item, inout IntPtr cookie)
TreeItemId GetLastChild (TreeItemId item)
TreeItemId GetNextSibling (TreeItemId item)
TreeItemId GetPrevSibling (TreeItemId item)
TreeItemId GetFirstVisibleItem ()
TreeItemId GetNextVisible (TreeItemId item)
TreeItemId GetPrevVisible (TreeItemId item)
void Expand (TreeItemId item)
void Collapse (TreeItemId item)
void CollapseAndReset (TreeItemId item)
void Toggle (TreeItemId item)
void EnsureVisible (TreeItemId item)
void ScrollTo (TreeItemId item)
int GetChildrenCount (TreeItemId item)
int GetChildrenCount (TreeItemId item, bool recursively)
int Count ()
bool IsVisible (TreeItemId item)
bool ItemHasChildren (TreeItemId item)
bool IsExpanded (TreeItemId item)
bool HasChildren (TreeItemId item)
TreeItemId[] SelectionsOld ()
TreeItemId[] Selections ()
TreeItemId[] SelectionsAtOrBelow (TreeItemId parent_item)
TreeItemId[] SelectionsBelow (TreeItemId parent_item)
TreeItemId[] AllItems ()
TreeItemId[] AllItemsAtOrBelow (TreeItemId parent_item)
TreeItemId[] AllItemsBelow (TreeItemId parent_item)
uint Indent ()
void Indent (uint value)
uint Spacing ()
void Spacing (uint value)
Colour GetItemTextColour (TreeItemId item)
Colour GetItemBackgroundColour (TreeItemId item)
Font GetItemFont (TreeItemId item)
void SetItemFont (TreeItemId item, Font font)
void SetItemHasChildren (TreeItemId item)
void SetItemHasChildren (TreeItemId item, bool has)
void SetItemBold (TreeItemId item)
void SetItemBold (TreeItemId item, bool bold)
void SetItemTextColour (TreeItemId item, Colour col)
void SetItemBackgroundColour (TreeItemId item, Colour col)
void EditLabel (TreeItemId item)
bool GetBoundingRect (TreeItemId item, inout Rectangle rect)
bool GetBoundingRect (TreeItemId item, inout Rectangle rect, bool textOnly)
TreeItemId InsertItem (TreeItemId parent, TreeItemId previous, string text)
TreeItemId InsertItem (TreeItemId parent, TreeItemId previous, string text, int image)
TreeItemId InsertItem (TreeItemId parent, TreeItemId previous, string text, int image, int sellimage)
TreeItemId InsertItem (TreeItemId parent, TreeItemId previous, string text, int image, int sellimage, TreeItemData data)
TreeItemId InsertItem (TreeItemId parent, int before, string text)
TreeItemId InsertItem (TreeItemId parent, int before, string text, int image)
TreeItemId InsertItem (TreeItemId parent, int before, string text, int image, int sellimage)
TreeItemId InsertItem (TreeItemId parent, int before, string text, int image, int sellimage, TreeItemData data)
bool IsBold (TreeItemId item)
TreeItemId PrependItem (TreeItemId parent, string text)
TreeItemId PrependItem (TreeItemId parent, string text, int image)
TreeItemId PrependItem (TreeItemId parent, string text, int image, int sellimage)
TreeItemId PrependItem (TreeItemId parent, string text, int image, int sellimage, TreeItemData data)
void SetItemSelectedImage (TreeItemId item, int selImage)
void ToggleItemSelection (TreeItemId item)
void UnselectItem (TreeItemId item)
void SortChildren (TreeItemId item)
void BeginDrag_Add (EventListener value)
void BeginDrag_Remove (EventListener value)
void BeginRightDrag_Add (EventListener value)
void BeginRightDrag_Remove (EventListener value)
void BeginLabelEdit_Add (EventListener value)
void BeginLabelEdit_Remove (EventListener value)
void EndLabelEdit_Add (EventListener value)
void EndLabelEdit_Remove (EventListener value)
void DeleteItem_Add (EventListener value)
void DeleteItem_Remove (EventListener value)
void GetInfo_Add (EventListener value)
void GetInfo_Remove (EventListener value)
void SetInfo_Add (EventListener value)
void SetInfo_Remove (EventListener value)
void ItemExpand_Add (EventListener value)
void ItemExpand_Remove (EventListener value)
void ItemExpanding_Add (EventListener value)
void ItemExpanding_Remove (EventListener value)
void ItemCollapse_Add (EventListener value)
void ItemCollapse_Remove (EventListener value)
void ItemCollapsing_Add (EventListener value)
void ItemCollapsing_Remove (EventListener value)
void SelectionChange_Add (EventListener value)
void SelectionChange_Remove (EventListener value)
void SelectionChanging_Add (EventListener value)
void SelectionChanging_Remove (EventListener value)
override void KeyDown_Add (EventListener value)
override void KeyDown_Remove (EventListener value)
void ItemActivate_Add (EventListener value)
void ItemActivate_Remove (EventListener value)
void ItemRightClick_Add (EventListener value)
void ItemRightClick_Remove (EventListener value)
void ItemMiddleClick_Add (EventListener value)
void ItemMiddleClick_Remove (EventListener value)
void EndDrag_Add (EventListener value)
void EndDrag_Remove (EventListener value)

Static Public Member Functions

static this ()
static wxObject New (IntPtr wxobj)

Public Attributes

const int wxTR_NO_BUTTONS = 0x0000
const int wxTR_HAS_BUTTONS = 0x0001
const int wxTR_TWIST_BUTTONS = 0x0010
const int wxTR_NO_LINES = 0x0004
const int wxTR_LINES_AT_ROOT = 0x0008
const int wxTR_MAC_BUTTONS = 0
const int wxTR_AQUA_BUTTONS = 0
const int wxTR_SINGLE = 0x0000
const int wxTR_MULTIPLE = 0x0020
const int wxTR_EXTENDED = 0x0040
const int wxTR_FULL_ROW_HIGHLIGHT = 0x2000
const int wxTR_EDIT_LABELS = 0x0200
const int wxTR_ROW_LINES = 0x0400
const int wxTR_HIDE_ROOT = 0x0800
const int wxTR_HAS_VARIABLE_ROW_HEIGHT = 0x0080
const int wxTREE_HITTEST_ABOVE = 0x0001
const int wxTREE_HITTEST_BELOW = 0x0002
const int wxTREE_HITTEST_NOWHERE = 0x0004
const int wxTREE_HITTEST_ONITEMBUTTON = 0x0008
const int wxTREE_HITTEST_ONITEMICON = 0x0010
const int wxTREE_HITTEST_ONITEMINDENT = 0x0020
const int wxTREE_HITTEST_ONITEMLABEL = 0x0040
const int wxTREE_HITTEST_ONITEMRIGHT = 0x0080
const int wxTREE_HITTEST_ONITEMSTATEICON = 0x0100
const int wxTREE_HITTEST_TOLEFT = 0x0200
const int wxTREE_HITTEST_TORIGHT = 0x0400
const int wxTREE_HITTEST_ONITEMUPPERPART = 0x0800
const int wxTREE_HITTEST_ONITEMLOWERPART = 0x1000
const int wxTREE_HITTEST_ONITEM = wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL
const string wxTreeCtrlNameStr = "treeCtrl"

Static Public Attributes

static int wxTR_DEFAULT_STYLE


Constructor & Destructor Documentation

static this (  )  [static]

this ( IntPtr  wxobj  ) 

Reimplemented from Control.

this (  ) 

this ( Window  parent,
int  id,
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
Validator  val = null,
string  name = wxTreeCtrlNameStr 
)

this ( Window  parent,
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
Validator  val = null,
string  name = wxTreeCtrlNameStr 
)


Member Function Documentation

static wxObject New ( IntPtr  wxobj  )  [static]

Reimplemented from Control.

bool Create ( Window  parent,
int  id,
inout Point  pos,
inout Size  size,
int  style,
Validator  val,
string  name 
)

virtual int OnCompareItems ( TreeItemId  item1,
TreeItemId  item2 
)

TreeItemId AddRoot ( string  text  ) 

TreeItemId AddRoot ( string  text,
int  image 
)

TreeItemId AddRoot ( string  text,
int  image,
int  selImage 
)

TreeItemId AddRoot ( string  text,
int  image,
int  selImage,
TreeItemData  data 
)

TreeItemId AppendItem ( TreeItemId  parentId,
string  text 
)

TreeItemId AppendItem ( TreeItemId  parentId,
string  text,
int  image 
)

TreeItemId AppendItem ( TreeItemId  parentId,
string  text,
int  image,
int  selImage 
)

TreeItemId AppendItem ( TreeItemId  parentId,
string  text,
int  image,
int  selImage,
TreeItemData  data 
)

void AssignImageList ( ImageList  imageList  ) 

void AssignStateImageList ( ImageList  imageList  ) 

ImageList imageList (  ) 

void imageList ( ImageList  value  ) 

void SetImageList ( ImageList  imageList  ) 

ImageList StateImageList (  ) 

void StateImageList ( ImageList  value  ) 

void SetItemImage ( TreeItemId  item,
int  image 
)

void SetItemImage ( TreeItemId  item,
int  image,
TreeItemIcon  which 
)

int GetItemImage ( TreeItemId  item  ) 

int GetItemImage ( TreeItemId  item,
TreeItemIcon  which 
)

void DeleteAllItems (  ) 

void Delete ( TreeItemId  item  ) 

void DeleteChildren ( TreeItemId  item  ) 

void Unselect (  ) 

void UnselectAll (  ) 

bool IsSelected ( TreeItemId  item  ) 

void SelectItem ( TreeItemId  item  ) 

TreeItemId Selection (  ) 

void Selection ( TreeItemId  value  ) 

void SetItemText ( TreeItemId  item,
string  text 
)

string GetItemText ( TreeItemId  item  ) 

void SetItemData ( TreeItemId  item,
TreeItemData  data 
)

TreeItemData GetItemData ( TreeItemId  item  ) 

TreeItemId HitTest ( Point  pt,
out int  flags 
)

TreeItemId RootItem (  ) 

TreeItemId GetItemParent ( TreeItemId  item  ) 

TreeItemId GetFirstChild ( TreeItemId  item,
inout IntPtr  cookie 
)

TreeItemId GetNextChild ( TreeItemId  item,
inout IntPtr  cookie 
)

TreeItemId GetLastChild ( TreeItemId  item  ) 

TreeItemId GetNextSibling ( TreeItemId  item  ) 

TreeItemId GetPrevSibling ( TreeItemId  item  ) 

TreeItemId GetFirstVisibleItem (  ) 

TreeItemId GetNextVisible ( TreeItemId  item  ) 

TreeItemId GetPrevVisible ( TreeItemId  item  ) 

void Expand ( TreeItemId  item  ) 

void Collapse ( TreeItemId  item  ) 

void CollapseAndReset ( TreeItemId  item  ) 

void Toggle ( TreeItemId  item  ) 

void EnsureVisible ( TreeItemId  item  ) 

void ScrollTo ( TreeItemId  item  ) 

int GetChildrenCount ( TreeItemId  item  ) 

int GetChildrenCount ( TreeItemId  item,
bool  recursively 
)

int Count (  ) 

bool IsVisible ( TreeItemId  item  ) 

bool ItemHasChildren ( TreeItemId  item  ) 

bool IsExpanded ( TreeItemId  item  ) 

bool HasChildren ( TreeItemId  item  ) 

TreeItemId [] SelectionsOld (  ) 

TreeItemId [] Selections (  ) 

TreeItemId [] SelectionsAtOrBelow ( TreeItemId  parent_item  ) 

TreeItemId [] SelectionsBelow ( TreeItemId  parent_item  ) 

TreeItemId [] AllItems (  ) 

TreeItemId [] AllItemsAtOrBelow ( TreeItemId  parent_item  ) 

TreeItemId [] AllItemsBelow ( TreeItemId  parent_item  ) 

uint Indent (  ) 

void Indent ( uint  value  ) 

uint Spacing (  ) 

void Spacing ( uint  value  ) 

Colour GetItemTextColour ( TreeItemId  item  ) 

Colour GetItemBackgroundColour ( TreeItemId  item  ) 

Font GetItemFont ( TreeItemId  item  ) 

void SetItemFont ( TreeItemId  item,
Font  font 
)

void SetItemHasChildren ( TreeItemId  item  ) 

void SetItemHasChildren ( TreeItemId  item,
bool  has 
)

void SetItemBold ( TreeItemId  item  ) 

void SetItemBold ( TreeItemId  item,
bool  bold 
)

void SetItemTextColour ( TreeItemId  item,
Colour  col 
)

void SetItemBackgroundColour ( TreeItemId  item,
Colour  col 
)

void EditLabel ( TreeItemId  item  ) 

bool GetBoundingRect ( TreeItemId  item,
inout Rectangle  rect 
)

bool GetBoundingRect ( TreeItemId  item,
inout Rectangle  rect,
bool  textOnly 
)

TreeItemId InsertItem ( TreeItemId  parent,
TreeItemId  previous,
string  text 
)

TreeItemId InsertItem ( TreeItemId  parent,
TreeItemId  previous,
string  text,
int  image 
)

TreeItemId InsertItem ( TreeItemId  parent,
TreeItemId  previous,
string  text,
int  image,
int  sellimage 
)

TreeItemId InsertItem ( TreeItemId  parent,
TreeItemId  previous,
string  text,
int  image,
int  sellimage,
TreeItemData  data 
)

TreeItemId InsertItem ( TreeItemId  parent,
int  before,
string  text 
)

TreeItemId InsertItem ( TreeItemId  parent,
int  before,
string  text,
int  image 
)

TreeItemId InsertItem ( TreeItemId  parent,
int  before,
string  text,
int  image,
int  sellimage 
)

TreeItemId InsertItem ( TreeItemId  parent,
int  before,
string  text,
int  image,
int  sellimage,
TreeItemData  data 
)

bool IsBold ( TreeItemId  item  ) 

TreeItemId PrependItem ( TreeItemId  parent,
string  text 
)

TreeItemId PrependItem ( TreeItemId  parent,
string  text,
int  image 
)

TreeItemId PrependItem ( TreeItemId  parent,
string  text,
int  image,
int  sellimage 
)

TreeItemId PrependItem ( TreeItemId  parent,
string  text,
int  image,
int  sellimage,
TreeItemData  data 
)

void SetItemSelectedImage ( TreeItemId  item,
int  selImage 
)

void ToggleItemSelection ( TreeItemId  item  ) 

void UnselectItem ( TreeItemId  item  ) 

void SortChildren ( TreeItemId  item  ) 

void BeginDrag_Add ( EventListener  value  ) 

void BeginDrag_Remove ( EventListener  value  ) 

void BeginRightDrag_Add ( EventListener  value  ) 

void BeginRightDrag_Remove ( EventListener  value  ) 

void BeginLabelEdit_Add ( EventListener  value  ) 

void BeginLabelEdit_Remove ( EventListener  value  ) 

void EndLabelEdit_Add ( EventListener  value  ) 

void EndLabelEdit_Remove ( EventListener  value  ) 

void DeleteItem_Add ( EventListener  value  ) 

void DeleteItem_Remove ( EventListener  value  ) 

void GetInfo_Add ( EventListener  value  ) 

void GetInfo_Remove ( EventListener  value  ) 

void SetInfo_Add ( EventListener  value  ) 

void SetInfo_Remove ( EventListener  value  ) 

void ItemExpand_Add ( EventListener  value  ) 

void ItemExpand_Remove ( EventListener  value  ) 

void ItemExpanding_Add ( EventListener  value  ) 

void ItemExpanding_Remove ( EventListener  value  ) 

void ItemCollapse_Add ( EventListener  value  ) 

void ItemCollapse_Remove ( EventListener  value  ) 

void ItemCollapsing_Add ( EventListener  value  ) 

void ItemCollapsing_Remove ( EventListener  value  ) 

void SelectionChange_Add ( EventListener  value  ) 

void SelectionChange_Remove ( EventListener  value  ) 

void SelectionChanging_Add ( EventListener  value  ) 

void SelectionChanging_Remove ( EventListener  value  ) 

override void KeyDown_Add ( EventListener  value  ) 

Reimplemented from Window.

override void KeyDown_Remove ( EventListener  value  ) 

Reimplemented from Window.

void ItemActivate_Add ( EventListener  value  ) 

void ItemActivate_Remove ( EventListener  value  ) 

void ItemRightClick_Add ( EventListener  value  ) 

void ItemRightClick_Remove ( EventListener  value  ) 

void ItemMiddleClick_Add ( EventListener  value  ) 

void ItemMiddleClick_Remove ( EventListener  value  ) 

void EndDrag_Add ( EventListener  value  ) 

void EndDrag_Remove ( EventListener  value  ) 


Member Data Documentation

const int wxTR_NO_BUTTONS = 0x0000

const int wxTR_HAS_BUTTONS = 0x0001

const int wxTR_TWIST_BUTTONS = 0x0010

const int wxTR_NO_LINES = 0x0004

const int wxTR_LINES_AT_ROOT = 0x0008

const int wxTR_MAC_BUTTONS = 0

const int wxTR_AQUA_BUTTONS = 0

const int wxTR_SINGLE = 0x0000

const int wxTR_MULTIPLE = 0x0020

const int wxTR_EXTENDED = 0x0040

const int wxTR_FULL_ROW_HIGHLIGHT = 0x2000

const int wxTR_EDIT_LABELS = 0x0200

const int wxTR_ROW_LINES = 0x0400

const int wxTR_HIDE_ROOT = 0x0800

const int wxTR_HAS_VARIABLE_ROW_HEIGHT = 0x0080

int wxTR_DEFAULT_STYLE [static]

const int wxTREE_HITTEST_ABOVE = 0x0001

const int wxTREE_HITTEST_BELOW = 0x0002

const int wxTREE_HITTEST_NOWHERE = 0x0004

const int wxTREE_HITTEST_ONITEMBUTTON = 0x0008

const int wxTREE_HITTEST_ONITEMICON = 0x0010

const int wxTREE_HITTEST_ONITEMINDENT = 0x0020

const int wxTREE_HITTEST_ONITEMLABEL = 0x0040

const int wxTREE_HITTEST_ONITEMRIGHT = 0x0080

const int wxTREE_HITTEST_ONITEMSTATEICON = 0x0100

const int wxTREE_HITTEST_TOLEFT = 0x0200

const int wxTREE_HITTEST_TORIGHT = 0x0400

const int wxTREE_HITTEST_ONITEMUPPERPART = 0x0800

const int wxTREE_HITTEST_ONITEMLOWERPART = 0x1000

const int wxTREE_HITTEST_ONITEM = wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL

const string wxTreeCtrlNameStr = "treeCtrl"


The documentation for this class was generated from the following file:
Generated on Sun Feb 1 21:30:30 2009 for wxD by  doxygen 1.5.4