SFML community forums

Help => Window => Topic started by: Black on May 27, 2016, 03:29:36 pm

Title: ['Solved'] Creating window, inside other window.
Post by: Black on May 27, 2016, 03:29:36 pm
Hello!

From moment I began creating programs with SFML, i wondered if there is a way to create window, inside other window. I tried to find answer on internet, but seems that none ever thought about such an stupidity... Or I am just awful at googlin'.

Why Do I need it? Well, I actually do not, but I found it usefull to place window fe, for chat, map etc, and make it easy to update whole game system. I know, that there is many otherways to do it, but I want to update my actual project with such an improvment.

Is it possieble? If yes, could you sahre idea, and brief explenation of what's goin' on (I am autodidact)?

My problem is kind of non-existing. But I would really appreciate, if it would be possieble!

Regards,
~~Black
Title: Re: [Question] Creating window, inside other window.
Post by: nicox11 on May 27, 2016, 03:57:27 pm
It seems it's not possible, even though it is an old post :

http://en.sfml-dev.org/forums/index.php?topic=2354.0
Title: Re: [Question] Creating window, inside other window.
Post by: eXpl0it3r on May 27, 2016, 04:15:13 pm
It's not possible with SFML and personally I always find these applications with multiple windows inside one window quite annoying. ;)
I'd suggest to look into some OepnGL GUI library (for example SFGUI or TGUI). Most of them support "pseudo" windows.
Title: Re: [Question] Creating window, inside other window.
Post by: Recoil on May 27, 2016, 07:28:03 pm
Not exactly sure how accurate this will apply, but using SFML.NET bindings you can put a picturebox inside a form, and have RenderWindow1 as Form1.Picturebox1.handle.  I was testing out 3 render windows that were pictureboxes in an application recently.
Title: Re: [Question] Creating window, inside other window.
Post by: Black on May 27, 2016, 08:23:52 pm
Well, I am kind of not happy 'bout this, but Let it be! Gonna find other way... Prpbly new class ;p

Thank you guys for Help!