click on wxTreeCtrl
M Nealon
malcolm.nealon at gmail.com
Thu Nov 15 22:31:56 PST 2007
>From what I see, these events are initiated from the contents of the
tree control. Your tree control has no contents, so why do you expect
to see the events?
Best
Mal
On Nov 15, 2007 5:01 PM, zeroDwa <trace02 at wupe.pl> wrote:
>
> what I can use wxTreeCtrl?
> when click on the item what happened?
> my OnSelChanged id not working.
>
> __________________
> class MyTreeCtrl: public wxTreeCtrl
> {
> public:
> MyTreeCtrl(wxWindow *parent, const wxWindowID id,
> const wxPoint& pos, const wxSize& size,
> long style);
> virtual ~MyTreeCtrl(){};
> void OnItemActivated(wxTreeEvent& event);
> void OnSelChanged(wxTreeEvent& event);
> DECLARE_EVENT_TABLE()
> };
>
> BEGIN_EVENT_TABLE(MyTreeCtrl, wxTreeCtrl)
> EVT_TREE_SEL_CHANGED(ID_numer, MyTreeCtrl::OnSelChanged)
> EVT_TREE_ITEM_ACTIVATED(ID_numer,MyTreeCtrl::OnItemActivated)
> END_EVENT_TABLE()
>
> void MyTreeCtrl::OnItemActivated(wxTreeEvent& event)
> {
> printf(wxT("OnItemActivated"));
> }
>
> void MyTreeCtrl::OnSelChanged(wxTreeEvent& event)
> {
> printf(wxT("OnSelChanged"));
> event.Skip();
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list