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

Author Topic: Could you expose WM_MINMAXINFO event?  (Read 2785 times)

0 Members and 1 Guest are viewing this topic.

MaikuMori

  • Newbie
  • *
  • Posts: 2
    • View Profile
Could you expose WM_MINMAXINFO event?
« on: November 14, 2010, 09:28:00 pm »
I wanted to set minimum window size, but it doesn't seem to be possible without hacking around.

Maybe I am missing something?

If I'm not, is there any chance it will ever be implemented into the library?

Thanks!

More info about the event at msdn - http://msdn.microsoft.com/en-us/library/ms632626.aspx

EDIT:
In fact I don't think it's even necessary to expose it as event type, it would be just fine if it was possible to give minimum size as parameters when you create a window using SFML, then you could handle it internally and it would be easier to make sure it works cross platform.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Could you expose WM_MINMAXINFO event?
« Reply #1 on: November 14, 2010, 11:02:38 pm »
SFML is not a complete windowing API such as Qt or GTK. There are tons of things that are not implemented, and I don't want to add them all (to keep the API simple).

So... this one seems to be too specific to have a chance to be added to SFML, sorry.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Could you expose WM_MINMAXINFO event?
« Reply #2 on: November 14, 2010, 11:03:40 pm »
listen for resize event. if the size is too small for you then resize the window as you wish. no need for such parameter.
SFML / OS X developer

MaikuMori

  • Newbie
  • *
  • Posts: 2
    • View Profile
Could you expose WM_MINMAXINFO event?
« Reply #3 on: November 14, 2010, 11:14:31 pm »
Quote from: "Hiura"
listen for resize event. if the size is too small for you then resize the window as you wish. no need for such parameter.

Yeah I was about to try that out.

Laurent, I understand. Not a biggy, just though it would actually be quite handy thing to have.