How to resize mpWindow?

Help
DavidA
2009-09-15
2013-05-02
  • DavidA
    DavidA
    2009-09-15

    Hi

    I am new to wxMathPlot. I am using wxMathPlot 0.1.1 on Windows XP and building with Visual Studio 2005.

    I have built and run sample 1 successfully. I then copied that code into my own wxWidgets app that has a parent frame with several child frames for plotting. The plots appear correctly but the mpWindow object does not resize with its frame. I can see no significant difference between my code and the sample except that my frame is not the top level frame.

    How can I cause mpWindow to resize with its owning frame please?

    Best regards

    David

     
  • DavidA
    DavidA
    2009-09-15

    Hi

    Thanks for your reply. I am familiar with sizers and used the same code as your example. Guess I need to take another look…

    David

     
  • DavidA
    DavidA
    2009-09-17

    Problem fixed. The plot window now correctly resizes with the frame. All done by the sizer automatically. Not sure where the problem was in my code but I reduced the code and the problem went away.

    Thanks for your help.