EnableExplicit Define EventID If OpenWindow(0,0,0,500,400,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) If CreateMenu(1,WindowID(0)) MenuTitle("Datei") MenuTitle("Bearbeiten") MenuTitle("Hilfe") EndIf HiliteMenuItem_(WindowID(0),MenuID(1),0,#MF_BYPOSITION| #MF_HILITE) Repeat EventID=WaitWindowEvent() If EventID = #PB_Event_CloseWindow End EndIf ForEver EndIf