I'm jimmigoo (Francesco), a newbie on wxMathplot.
I explain my needs, I think someone knowing the answer could help me.
I have to build a GUI with a wxNotebook and some Panels. Inside one of these panels, I have to put a mpWindow, that could auto resize itself when I maximize the whole frame.
Hi everybody!
I'm jimmigoo (Francesco), a newbie on wxMathplot.
I explain my needs, I think someone knowing the answer could help me.
I have to build a GUI with a wxNotebook and some Panels. Inside one of these panels, I have to put a mpWindow, that could auto resize itself when I maximize the whole frame.
So, I've built this structure on wxFormBuilder:
wxNotebook
wxPanel
wxFlexGridSizer
upperSizer
InternalPanel
loweSizer
FirstButton
SecondButton
I've put manually on the code the mpWindow item onto InternalPanel, and I set the mpWindow item with this code:
m_plot = new mpWindow( InternalPanel, -1, wxPoint(0,0), wxSize(700,500), wxSUNKEN_BORDER|wxFULL_REPAINT_ON_RESIZE|wxALIGN_CENTER_HORIZONTAL|wxEXPAND|wxALL);
Nevertheless, when I try maximizing the whole Frame, the InternalPanel auto-resizes itself, while the mpWindow remain with its original dimensions.
So, I'm just asking for an answer to these question:
what could be the code to handle this desired auto-resizing?
I'm look forward for someone reply.
Thanks a lot.
Best Regards.
Francesco