Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: wxSFMLcanvas with sizers problem  (Read 1899 times)

0 Members and 1 Guest are viewing this topic.

Jwake315@aol.com

  • Newbie
  • *
  • Posts: 3
    • View Profile
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.

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...

Deftwun

  • Newbie
  • *
  • Posts: 27
    • View Profile
wxSFMLcanvas with sizers problem
« Reply #1 on: September 09, 2011, 02:58:13 am »
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!

 

anything