wxTreeEvent, Connect
Guillermo Torreiro
gtlists at gmail.com
Mon Sep 3 10:59:00 PDT 2007
Hi,
Could you post the link command that you use ?
Best Regards,
GT
On 9/1/07, Torsten Mohr <tmohr at s.netic.de> wrote:
>
> Hi,
>
> in a class derived from wxDialog i use a wxSplitterWindow and in
> that one i use a wxTreeCtrl.
>
> I'd like to get the events for a selection-change in my dialog class
> and i try to use Connect for that:
>
> In the constructor of the wxDialog:
>
>
> split = new wxSplitterWindow(this, CHR_SETTINGS_SPLIT,
> wxDefaultPosition, wxDefaultSize);
>
> stree = new wxTreeCtrl(split, CHR_SETTINGS_TREE,
> wxDefaultPosition, wxDefaultSize,
> wxTR_HAS_BUTTONS | wxTR_HIDE_ROOT | wxTR_SINGLE );
>
> Connect(wxEVT_COMMAND_TREE_SEL_CHANGED,
> wxTreeEventHandler(ChrXmlSettings::OnSelChanged));
>
>
>
> void ChrXmlSettings::OnSelChanged(wxTreeEvent& e)
> {
> }
>
> When linking i get unresolved symbols for:
>
> ChrXmlSettings::GetEventHashTable
> ChrXmlSettings::GetEventTable
>
> Those are virtual methods of the wxEvtHandler and wxDialog is
> derived from it.
>
> Should i implement those methods? What should be in there?
>
> Is there a way around that?
>
> Is there a better way to get notified of a selection change of
> the wxTreeCtrl? I don't really want to create a new class.
>
> Of course i know the example in the documentation and the Wiki,
> but they don't help here. Also the book did not really help.
>
>
> Thanks for any hints,
> Torsten.
>
>
>
>
> ---------------------------------------------------------------------
> 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