Code: Alles auswählen
Procedure LeftClickEvent()
; tue irgend etwas
UnbindEvent(#PB_Event_LeftClick,@LeftClickEvent())
Debug "Klick"
Debug Str(EventType())
Debug Str(EventMenu())
Debug Str(EventGadget())
Debug Str(EventData())
Debug Str(EventWindow())
EndProcedure
Procedure MenuEvent()
Debug "Menü"
UnbindEvent(#PB_Event_LeftClick,@LeftClickEvent())
UnbindMenuEvent(100,1200,@MenuEvent())
EndProcedure
If OpenWindow(111, 0, 0, 100, 100, "UnbindEvent", #PB_Window_SystemMenu )
BindEvent(#PB_Event_LeftClick,@LeftClickEvent())
CreatePopupMenu(100)
AddKeyboardShortcut(111, #PB_Shortcut_Escape , 1200)
BindMenuEvent(100,1200,@MenuEvent())
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
weiß jemand, ob das so sein soll?[Debugger]
Menü
Klick
0
1200
1200
0
111
[heute mal auf WinXP PB5.21LTS(x86)]