Seite 2 von 2

Verfasst: 10.10.2005 13:47
von gnozal
Ein tip :

Natürlich kann man das #PB_Event_ResizeWindow (#WM_SIZE) in dem Callback abfangen :

Code: Alles auswählen

Procedure.l WindowCallBack(WindowId.l, message.l, wParam.l, lParam.l) 
  ReturnValue.l = #PB_ProcessPureBasicEvents
  ;
  ReturnValue = PureRESIZE_CallBack(WindowId, message, wParam, lParam, ReturnValue)
  If message = #WM_SIZE And WindowId = WindowID(#MyWindow)
    Debug "Window resized"
  EndIf
  ;
  ProcedureReturn ReturnValue 
EndProcedure