Page 1 of 1

[4 beta 3 linux] Events occur on an inexisting window

Posted: Sun Mar 04, 2007 5:37 pm
by Trond
Many events goes to the window with the ID -1.

Code: Select all

OpenWindow(0, 0, 0, 100, 100, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)

Repeat
  Event = WaitWindowEvent(1000)
  Select Event
    Case #PB_Event_CloseWindow
      CloseWindow(0)
    Default
      Debug EventWindow()
  EndSelect
ForEver

Posted: Sun Apr 01, 2007 2:55 pm
by freak
It means they are gtk events with no meaning in PB.
The WaitWindowEvent() result does not match a PB constant either, so just ignore them.