Hi. I tried to save if the app window was maximized to set it to maximized on the next run.
I tried it with this Code on "OnSize":
But the RESTORED event is always called when the app launches and so it's always set to false and not maximized on startup (put it in Preload/onShow). If I comment this line it always stays maximized because its not set to false when the user restores the window.
Does anyone know a workaround? I could not find an action to get the windows state on close (to know if it was maximized or not).
I tried it with this Code on "OnSize":
Code:
if e_Type == SIZE_MAXIMIZED then MAXIMIZED = true; end if e_Type == SIZE_RESTORED then MAXIMIZED = false; end
Does anyone know a workaround? I could not find an action to get the windows state on close (to know if it was maximized or not).
Comment