Hello, i can't make a program with modal window or messagerequester
the window_parent_id in openwindow doesn't work
and with messagerequester i can click on the back window
any information ?
Modal Dialog and MessageRequester ?
There seems to be a bug with the message requesters. They have their own taskbar buttons as well.
Can you try this? (It works on Windows.)
Can you try this? (It works on Windows.)
Code: Select all
OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
ButtonGadget(0, 10, 10, 100, 25, "")
Repeat
Select WaitWindowEvent()
Case #PB_Event_Gadget
DisableWindow(0, 1)
OpenWindow(1, 0, 0, 200, 200, "", #PB_Window_WindowCentered | #PB_Window_SystemMenu, WindowID(0))
Case #PB_Event_CloseWindow
If EventWindow() = 0
Break
ElseIf EventWindow() = 1
CloseWindow(1)
DisableWindow(0, 0)
EndIf
EndSelect
ForEver
