events in wxNoteBook children
Carsten A. Arnholm
arnholm at offline.no
Tue Feb 19 13:17:56 PST 2008
Astan Chee wrote:
> Hi,
> Im using wx in c++ (in windows using wxDev-C++) and I have a
> wxNoteBook that dynamically adds or deletes wxPanels as its
> children/tabs. The problem Im having is hooking up events such as key/char
> events or
> mouse right click event on the wxPanel itself. If i do it normally, I
> have to focus on outside the wxPanel/tab but inside the wxNoteBook
> (does this make sense?). How do I hook up events like these to
> dynamic wxPanels? Cheers
> Astan
If you derive your own class from wxPanel, you can handle events specific to
panels using normal event table or Connect(). I have done that with some of
my code.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list