怎样为wxTreeCtrl添加双击事件? Topic is solved

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
wubi
In need of some credit
In need of some credit
Posts: 8
Joined: Wed May 12, 2010 12:26 pm

怎样为wxTreeCtrl添加双击事件?

Post by wubi » Wed May 19, 2010 1:47 am

我看文档中只提到一下的鼠标事件
EVT_TREE_ITEM_RIGHT_CLICK(id, func)
EVT_TREE_ITEM_MIDDLE_CLICK(id, func)
添加双击事件该如何做?

sishui
Earned some good credits
Earned some good credits
Posts: 121
Joined: Mon Mar 10, 2008 6:13 am
Location: 中國

Re: 怎样为wxTreeCtrl添加双击事件?

Post by sishui » Wed May 19, 2010 1:21 pm

wubi wrote:我看文档中只提到一下的鼠标事件
EVT_TREE_ITEM_RIGHT_CLICK(id, func)
EVT_TREE_ITEM_MIDDLE_CLICK(id, func)
添加双击事件该如何做?
EVT_TREE_ITEM_ACTIVATED(id, func)
文档上写得有的
work work!!!

wubi
In need of some credit
In need of some credit
Posts: 8
Joined: Wed May 12, 2010 12:26 pm

Post by wubi » Wed May 19, 2010 3:05 pm

谢谢了。后来仔细看了看,是有的。

wubi
In need of some credit
In need of some credit
Posts: 8
Joined: Wed May 12, 2010 12:26 pm

Post by wubi » Wed May 19, 2010 3:08 pm

谢谢了。后来仔细看了看,是有的。

wubi
In need of some credit
In need of some credit
Posts: 8
Joined: Wed May 12, 2010 12:26 pm

Post by wubi » Wed May 19, 2010 3:08 pm

谢谢了。后来仔细看了看,是有的。

Post Reply