wxTreeCtrl docs additions/corrections, wxNotifyEvent::Allow() adocumented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,7 @@ functions that take a \helpref{wxTreeEvent}{wxtreeevent} argument.
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{{\bf EVT\_TREE\_BEGIN\_DRAG(id, func)}}{Begin dragging with the left mouse button.}
|
||||
\twocolitem{{\bf EVT\_TREE\_BEGIN\_RDRAG(id, func)}}{Begin dragging with the right mouse button.}
|
||||
\twocolitem{{\bf EVT\_TREE\_END\_DRAG(id, func)}}{Drag ended (drop).}
|
||||
\twocolitem{{\bf EVT\_TREE\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
|
||||
\twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
|
||||
\twocolitem{{\bf EVT\_TREE\_DELETE\_ITEM(id, func)}}{Delete an item.}
|
||||
@@ -55,6 +56,12 @@ functions that take a \helpref{wxTreeEvent}{wxtreeevent} argument.
|
||||
\twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.}
|
||||
\end{twocollist}%
|
||||
|
||||
Note that to allow drag and drop in the tree control you must explicitly call
|
||||
\helpref{Allow()}{wxnotifyeventallow} in the event handler, by default
|
||||
dragging is disabled. On the other hand, label editing is allowed by default
|
||||
for the controls with \windowstyle{wxTR\_EDIT\_LABELS} style but you can call
|
||||
\helpref{Veto()}{wxnotifyeventveto} to prevent it from happening.
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxTreeItemData}{wxtreeitemdata}, \helpref{wxTreeCtrl overview}{wxtreectrloverview}, \helpref{wxListBox}{wxlistbox}, \helpref{wxListCtrl}{wxlistctrl},\rtfsp
|
||||
|
Reference in New Issue
Block a user