Page 1 of 1

[Resolved] Window resized - How to find out...

Posted: Tue Jan 10, 2006 1:57 am
by garretthylltun
How do I find out if the user has resized the window of my app on OSX?

I looked through the "Window" section of the docs, but only thing I
could find was how to resize the window from within my own code.

Thanks,
-Garrett

Posted: Tue Jan 10, 2006 2:07 am
by SEO

Code: Select all

Case #Float_Window
   Select Event_WindowEvent
      Case #PB_Event_CloseWindow    : CloseWindow(#Float_Window)
      Case #PB_Event_ActivateWindow : Set_ActiveWindow(#Float_Window)
      Case #PB_Event_SizeWindow     : Resize_Main_Gadgets()        
   EndSelect ; Event_WindowEvent

Posted: Tue Jan 10, 2006 2:51 am
by garretthylltun
Thank you. :-) I didn't see the #PB_Event_SizeWindow in the docs.

Thanks again,
-Garrett