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

Author Topic: showing popups?  (Read 2197 times)

0 Members and 1 Guest are viewing this topic.

NinjaFighter

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://www.sebagames.wordpress.com
showing popups?
« on: February 07, 2012, 12:12:12 am »
Is there a way to show popups with sfml2?
For example, to throw an user readable error?

RedIrony

  • Newbie
  • *
  • Posts: 23
    • View Profile
showing popups?
« Reply #1 on: February 07, 2012, 01:34:04 am »
I don't believe so. You'd probably be best served by finding a GUI library, and then integrating SFML into that.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 878
    • View Profile
showing popups?
« Reply #2 on: February 08, 2012, 05:42:05 pm »
Think he's talking about simple message boxes only. But yeah, never thought about these, but these should be exposed by SFML IMO.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
showing popups?
« Reply #3 on: February 08, 2012, 07:07:44 pm »
You can create a SFML window with no decoration (sf::Style::None). It won't be modal though.
Laurent Gomila - SFML developer

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 878
    • View Profile
showing popups?
« Reply #4 on: February 14, 2012, 01:38:14 pm »
Just googled a bit on this, and there's no generic way to do it? I expected some MessageBox pendant in X11, but it seems like there isn't any, so you'd have to create your own windows by hand... Would make a ready to use function even more interesting. Going to write up something for the suggestions forum.