Try that:
Code: Select all
ProcedureDLL MyWin(Message$)
OpenWindow(0, 100, 200, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, Message$)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow : Quit = 1
EndSelect
Until Quit = 1
EndProcedure
or that
Code: Select all
ProcedureDLL MyWin(Message$)
OpenWindow(0, 100, 200, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, Message$)
Repeat
If WaitWindowEvent() = #PB_Event_CloseWindow
Quit = 1
EndIf
Until Quit = 1
EndProcedure
or that:
Code: Select all
ProcedureDLL MyWin(Message$)
OpenWindow(0, 100, 200, 195, 260, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget, Message$)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndProcedure
The function WaitWindowEvent() must always return the value of #PB_Event_CloseWindow if you want to close the window.
Chris

My english is bad !!!... It's normal, i'm french

My english is not really the English.
It's the FrogLish (Froggy's English)
