Events callback 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
spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Events callback

Post by spectrum » Sat Jul 21, 2007 1:13 pm

hi all,

i'm new of wxWidgets, and i'm wandering if in the event table of a class (i.e. ChildFrame class, instantiated with "new" by a MainFrame), i can assign to an event a public MainFrame class method. Compiler let me do this, but i would like to know if it's a correct use of wxWidgets events callbacks.

Many Thanks
angelo
spectrum

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Sat Jul 21, 2007 2:46 pm

event tables let you only call event callbacks for the object that table is for - if you want to use a callback method in another object it is best to use Connect (http://wxwidgets.blogspot.com/2007/01/i ... nnect.html)

spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Post by spectrum » Sat Jul 21, 2007 3:02 pm

many thanks
spectrum

Post Reply