event handler

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
dzd
Earned a small fee
Earned a small fee
Posts: 14
Joined: Wed Apr 20, 2005 1:38 pm
Location: Aberdeen Scotland

event handler

Post by dzd » Fri Apr 29, 2005 10:59 am

Hi!

I've got a wxCtrlTree (which has his own event table) and I've add a PopupMenu.
Is it the better way to push a new eventhandler to catch popup menu events ?

Thanks.

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Fri Apr 29, 2005 11:50 am

Hi!
If it works, no. I think it easier to maintain when you use event tables. SetEventHanlder() and PushEventHandler() for me only makes sense if you have 2 or more standard widgets and want to handle events they normaly wouldn't in exactly the same way for both.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Post Reply