SFML community forums
General => General discussions => Topic started by: Jwake315@aol.com 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.
///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...
-
Same guy different user name. Stupidly used my other account that I accidently used my email name for lol. (Damn auto-fill ; no spam please)
Heres a pic of the problem I'm experiencing if its any help.
https://lh3.googleusercontent.com/-coeV0ZFzHoM/TmljFdLUlkI/AAAAAAAAABI/mMBl0OeS08I/wxSFMLCanvas%252520Problem.png
once again I know this is more a wxWidgets problem but I'm sure somebody out there on this forum must have run into this before. At least I hope so cause this is driving me absolutely nuts...
thanks!