I'm trying to integrate this Canvas (from the SFML tutorials) into my GUI but whenever I try to use it in conjunction with sizers It locks the size of the window at around (100,100) give or take. as long as I dont call Sizer->fit or sizer->layout it will size itself right but then all of my other controls end up out of whack. (I'm adding controls at run time so I have to call these.) No matter what i do this thing wont budge.
///graphics panel
//sfmlSizer is a child of GraphicsPanelSizer
wxSFMLCanvas * Canvas = new wxSFMLCanvas(GraphicsPanel,wxID_ANY , wxDefaultPosition, wxSize(250,250), wxEXPAND );
sfmlSizer->Add(Canvas,wxEXPAND);
GraphicsPanelSizer->Layout();
I know its more wxWidgets oriented but I figure I'd have more luck on this forum. Just wondering if anyone ever ran into this and made it out...