Comparison between event handler's creation Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Zdravko
Earned a small fee
Earned a small fee
Posts: 16
Joined: Sat Jun 04, 2005 8:11 am

Comparison between event handler's creation

Post by Zdravko »

What is best (in terms of speed efficiency): having a static event table (*_EVENT_TABLE()) or dynamic binding (Connect)?
tan
wxWorld Domination!
wxWorld Domination!
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan »

Hi,
Connect is a bit better, but to my mind it is non-essential.
More significant that Connect more flexible.
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10
clyde729
Super wx Problem Solver
Super wx Problem Solver
Posts: 426
Joined: Mon May 29, 2006 10:50 pm
Location: Jena, Germany

Post by clyde729 »

I agree,

handlers which are connected via "Connect" are checked first (before the static tables) by searching an appropriate handler for a certain event.
OS: Windows XP Home, Compiler: MingW, Version: wxWidgets 2.8.0, IDE: wx-Devcpp
Post Reply