1
General discussions / wxSFMLcanvas with sizers problem
« on: September 08, 2011, 03:25:58 am »
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.
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...
Code: [Select]
///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...