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

Author Topic: Minimized and maximized events ?  (Read 106 times)

0 Members and 1 Guest are viewing this topic.

binbinhfr

  • Newbie
  • *
  • Posts: 21
    • View Profile
Minimized and maximized events ?
« on: April 28, 2020, 12:06:02 pm »
Hi,

I search the forum, but it seems that there is no way to catch the minimized or maximized events coming from Windows, am I right ?

I understand that we can deal with the window API using the handle of the SFML window and ShowWindow  and so on, but we still cannot catch these events.

Is it planned to integrate these two simple events ?
Or is there a workaround that I could use ?

Example 1 : it would be nice to know when the window is minimized, in order to pause the application for example, until it is shown back.

Example 2 :  it would be nice to catch the maximized button, because, for the moment, if I press the maximize button, the window gets wider, but if I press it again, it does not retrieve its initial size, like the usual windows behaviour. If we were able to catch the event, we could deal with this and restore an initial size.
« Last Edit: April 28, 2020, 05:28:41 pm by binbinhfr »

 

anything