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

Author Topic: Hidden Window Creation  (Read 1384 times)

0 Members and 1 Guest are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1843
    • View Profile
    • My GitHub Page
    • Email
Hidden Window Creation
« on: February 01, 2018, 02:19:08 am »
It could be added to the Styles flags.

Creating a window and instantly hiding it causes it to flicker on Windows 10 at least (very visibly and jarringly) on the screen so it's not enough.

The only previous thing I could find was this issue but it seem to not have been followed up on: https://github.com/SFML/SFML/issues/1155
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9670
    • View Profile
    • development blog
    • Email
Re: Hidden Window Creation
« Reply #1 on: February 01, 2018, 03:03:21 pm »
And what's the use case?
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

FRex

  • Hero Member
  • *****
  • Posts: 1843
    • View Profile
    • My GitHub Page
    • Email
Re: Hidden Window Creation
« Reply #2 on: February 01, 2018, 05:31:46 pm »
It causes a very jarring flicker of the original Window on Windows if I want to do something with the Window myself right after creating it (like maximize or hide it). It looks horrible, bad on the eyes and look like a bug when it happens.
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

Jonny

  • Full Member
  • ***
  • Posts: 113
    • View Profile
    • Email
Re: Hidden Window Creation
« Reply #3 on: February 16, 2018, 01:59:48 am »
I have needed this in the past, and ended up adding it to my local version of SFML.

It was a while ago, so I can't remember the exact use case. IIRC it was something to do with loading resources before the window opened causing issues because of some openGL stuff I don't understand.


From memory, the windows implementation was very straightforward, especially if you're familiar with windows API, so if there's no complications on other platforms I'd fully support this request.

FRex

  • Hero Member
  • *****
  • Posts: 1843
    • View Profile
    • My GitHub Page
    • Email
Re: Hidden Window Creation
« Reply #4 on: February 16, 2018, 02:37:14 am »
Laurent has already said that he wants pretty much this to be implemented as part of 'Window States': https://en.sfml-dev.org/forums/index.php?topic=23578.msg161405#msg161405
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

 

anything