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

Author Topic: ['Solved'] Creating window, inside other window.  (Read 2338 times)

0 Members and 1 Guest are viewing this topic.

Black

  • Newbie
  • *
  • Posts: 2
    • View Profile
['Solved'] Creating window, inside other window.
« 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
« Last Edit: May 27, 2016, 08:24:54 pm by Black »

nicox11

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: [Question] Creating window, inside other window.
« Reply #1 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: [Question] Creating window, inside other window.
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Recoil

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: [Question] Creating window, inside other window.
« Reply #3 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.

Black

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [Question] Creating window, inside other window.
« Reply #4 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!