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

Author Topic: Edit: Deleted.  (Read 3234 times)

0 Members and 1 Guest are viewing this topic.

Kobie

  • Guest
Edit: Deleted.
« on: December 21, 2010, 12:57:51 am »
Edit: Deleted.
« Last Edit: December 21, 2012, 12:38:46 am by anonymous191 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Have window hidden by default upon creation
« Reply #1 on: December 21, 2010, 07:34:25 am »
Quote
the window could simply be hidden by default until Window::Display() is called

Hum that's an idea, I'll think about it for SFML 2.0 (SFML 1.7 is not going to exist).
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Have window hidden by default upon creation
« Reply #2 on: December 21, 2010, 07:40:41 pm »
In fact the idea to have the window hidden until the first call to Display() looks really cool. It makes sense because until Display() is called, the window will show garbage -- so it's not even a hack.

I'd like to know what other users think about it. Would there be any drawback doing this automatically?
Laurent Gomila - SFML developer

Orwel

  • Full Member
  • ***
  • Posts: 208
    • View Profile
Have window hidden by default upon creation
« Reply #3 on: December 21, 2010, 07:50:48 pm »
I prefer to use clear() to init window, because I have test prog whithout Display()  :D.

If the window is hidden, the events are recovered???

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Have window hidden by default upon creation
« Reply #4 on: December 21, 2010, 08:06:40 pm »
Quote
I prefer to use clear() to init window, because I have test prog whithout Display()

Hum... that looks weird. Can you tell me more about what you do? How can you see something useful without calling Display()?

Quote
If the window is hidden, the events are recovered???

It depends. Which events?
Laurent Gomila - SFML developer

Terrydil

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Have window hidden by default upon creation
« Reply #5 on: December 21, 2010, 09:38:26 pm »
I can see why it would be useful but its also not hard to quickly create the window and throw up a logo or something while everything else gets loaded.  Of course having the window hidden until the first call of Display() doesn't stop anyone from doing that so I don't see any reason not to implement it if its not too difficult on Laurent.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Have window hidden by default upon creation
« Reply #6 on: December 21, 2010, 10:19:24 pm »
I'm so-so with this technic – my main concern is about the current Show(bool) function. Could we still be able to use such functionality ? – but I like the idea!

From all GUI lib I've worked with all have the same pattern : call explicitly a 'show' method to display the window. Why not having to call this Show(bool) function to explicitly put the window on screen and by default having the window hidden ?
SFML / OS X developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Have window hidden by default upon creation
« Reply #7 on: December 21, 2010, 11:52:22 pm »
Quote
my main concern is about the current Show(bool) function. Could we still be able to use such functionality ?

Why not?

Quote
From all GUI lib I've worked with all have the same pattern : call explicitly a 'show' method to display the window. Why not having to call this Show(bool) function to explicitly put the window on screen and by default having the window hidden ?

I never do things just because all other libraries do it, I only do things which are relevant and well designed ;)
If we can do without explicitely using Show(true), that's a lot better. And it will avoid tons of forum topics like "I don't see my window what happens???" ;)
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Have window hidden by default upon creation
« Reply #8 on: December 22, 2010, 12:35:44 am »
So I don't have any concern about it! =)

Quote from: "Laurent"
I never do things just because all other libraries do it, I only do things which are relevant and well designed ;)
Yeah, I know that : you're always way ahead of us (or at least me hahaha)!
SFML / OS X developer