For WaitWindowEvent() And WindowEvent()
And change is:
WaitWindowEvent([Timeout[,#EventProc]]) And WindowEvent([#EventProc])
#EventProc is Procedure's numbering for WaitWindowEvent() and WindowEvent()
If #EventProc=0 ,is all Procedure of WaitWindowEvent() And WindowEvent()
If State = 0 it will be enabled
user how To realization? thanks!
Example:
Code: Select all
If OpenWindow(0,0,0,500,400,"",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
ButtonGadget(0, 0, 0,200, 20, "Button 0")
a=50:b=50
Repeat:Event=WaitWindowEvent(5000)
If Event
Select Event
Case #PB_Event_Gadget
a=150-a:ResizeGadget(0,a,0,200, 20)
Case #PB_Event_MoveWindow;******* please try this
;DisableEventProc(1);******* new
b=200-b:ResizeWindow(0,b,180,500,400):Delay(100);Wait Resize perfect
Case #PB_Event_CloseWindow:Quit = 1
EndSelect
;DisableEventProc(0);******* new
EndIf:Until Quit = 1
EndIf
End