Page 1 of 1

Events callback

Posted: Sat Jul 21, 2007 1:13 pm
by spectrum
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

Posted: Sat Jul 21, 2007 2:46 pm
by Auria
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)

Posted: Sat Jul 21, 2007 3:02 pm
by spectrum
many thanks