A Reszisewindow() will not work!
What can I do, that the windows gadgets are shown during the fileoperations?
Code: Select all
hwnd = OpenWindow(0, 0,0,300,300, "", #PB_Window_TitleBar | #PB_Window_ScreenCentered | #PB_Window_SystemMenu )
If hwnd
If CreateGadgetList(hwnd)
TextGadget(0, 10, 33, 70, 14, "Item:")
StringGadget( 1, 80, 30, 175, 20, "")
If CreateToolBar(2,hwnd)
ToolBarStandardButton(0, #PB_ToolBarIcon_Open)
Repeat
EventID = WaitWindowEvent()
Select EventID
Case #PB_Event_Menu
menu = EventMenu()
Select menu
Case 0
file.s=OpenFileRequester("Load", "Text (*.txt)|*.txt", "", 0)
; Do some longer fileactions - here Delay(5000)
Delay(5000)
EndSelect
EndSelect
Until EventID = #PB_Event_CloseWindow
EndIf
EndIf
EndIf