close query from MDIChildFrame
Vadim Zeitlin
vadim at wxwindows.org
Thu Oct 19 10:59:48 PDT 2006
On Mon, 16 Oct 2006 23:17:59 +0100 Rory Walsh <rorywalsh at ear.ie> wrote:
RW> Sorry it's taken so long to get back to you. You suggestion seems to
RW> make perfect sense but I don't know how to set up an event table for my
RW> child frame.
You don't even have to use Connect() here (although you may do it
perfectly well too), what's wrong with simply adding the appropriate macro
to the event table of your child frame class?
RW> In my code I have a vector of type wxMDIChildFrame.
Well, replace it with a vector of type YourMDIChildFrame.
RW> Each time I hit a menu command 'new Child' I resize the vector and
RW> dynamically create a new child frame. Can I dynamically create an event
RW> table, using the Connect() method? I've tried that, albeit wrongly.
Yes, see my other reply.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list