| Main | Usage | Programmer's Manual | Requests | Updates | Examples |
EVT_WHATEVER(self.GetFrame(), self.OnWhatever)Also, because of the inside-out order of UI customization, containers need to know something about the behavior of their children in order to prevent conflicting customizations. The best way to work around this (i.e., to not care about what the contained objects are doing) is to always do customizations relative to the IDs defined in gui.framework.Frame. Frame and, especially, Panel are the core parts of the framework. Two other classes are Notebook and Application. Notebook is designed to work in the context of the Site/Panel interfaces and will always tell its containing object (Site) to activate the currently selected panel. Application provides only a convenient way of accessing options. By deriving your application from gui.framework.Application and initializing the superclass with an array of potential config files, any code in the application can use wxGetApp().GetOption to read those config files. And here's how you put all this together. Do all your real work in a derived Panel class. Override ActivateSite, DeactivateSite, and UpdateMenus as necessary, but be sure to always call the superclass methods first when overriding them. Create a stub derived Frame class that knows how to instantiate your derived Panel class. If it is appropriate, use or derive a Notebook to host your Panel(s). With or without a Notebook, the most important thing you need to do is call ActivatePanel with your first active panel in order to hook-up all the plumbing discussed above. Create a stub Application class that knows how to instantiate your derived Frame class and where to find your config file, if appropriate. Then you're good to go.
| Topic DEAPProgrammersManual . { Edit | Attach | Ref-By | Printable | Diffs | r1.8 | > | r1.7 | > | r1.6 | More } |
|
Revision r1.8 - 13 May 2004 - 19:42 GMT - AmyShelton Parents: SoftwareReviewFeb04 > DEAP > DEAPUsage > DEAPRequests > DEAPUpdates > DEAPExamples |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |