calling a parent window class method from a child window class
Gregory van der Heijden <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am working on a plot/chart display wxWidgets application in which I have in my main frame a child wxWindow for drawing the chart and a panel in which I have four text controls. I can set the min and max range for the X and Y axes of my chart with the text controls but I have also implemented a mouse drag procedure to directly select an area on the chart to zoom into (this procedure uses mouse events in the chart window (child)). What I would like to do is update the values displayed in the text controls when the chart axis ranges are modified by the mouse drag procedure. *QUESTION: *Is there anyway for a child window (the class being nested within the parent class) to call a parent window method directly? it is my understanding that one solution would be to create a custom event in the child window that propagates to the parent which then handles it. But is there any other (simpler) way of doing this? Thanks in advance! -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/2b173c3a-9f8b-45e1-8243-8a785026ec2dn%40googlegroups.com.