@Kamendra - What is the Bug/Ticket ID for the issue you created, because I cannot find anything resembling this issue when I do a Bug Search.
The PowerScript MessageBox function has always called the Windows API MessageBox function to display the message box. This issue appears to be that, for unknown reason, the PowerScript MessageBox function now call the API function with a setting that specifies that the message box be opened as System Modal. Prior to this, the API function was being called with a Application Modal setting.
This can be easily verified by calling the Windows API function directly from PB. Here is the external function declaration I used to test:
FUNCTION Long WindowsMessageBox ( &
Longptr hWnd, &
String lpText, &
String lpCaption, &
UnsignedLong uType &
) LIBRARY "user32.dll" ALIAS FOR "MessageBoxW"
along with sample code to call the Windows API function from a command button on a window:
Constant UnsignedLong MB_OK = 0
Constant UnsignedLong MB_ICONINFORMATION = 64
Constant UnsignedLong MB_APPLMODAL = 0
Constant UnsignedLong MB_SYSTEMMODAL = 4096
Constant UnsignedLong MB_TASKMODAL = 8192
Longptr lp_hwnd
ULong lul_type
MessageBox("PowerScript MessageBox Test","Application Modal",Information!,OK!)
lp_hwnd = Handle(Parent)
lul_type = MB_APPLMODAL + MB_OK + MB_ICONINFORMATION
WindowsMessageBox(lp_hwnd,"Windows MessageBox API Test 1","Application Modal",lul_type)
lul_type = MB_SYSTEMMODAL + MB_OK + MB_ICONINFORMATION
WindowsMessageBox(lp_hwnd,"Windows MessageBox API Test 2","System Modal",lul_type)
lul_type = MB_TASKMODAL + MB_OK + MB_ICONINFORMATION
WindowsMessageBox(lp_hwnd,"Windows MessageBox API Test 3","Task Modal",lul_type)
Return 0
If you created a public bug ticket, please provide the ticket ID so that I can follow its progress, and if necessary, contribute my example code for the PB development team.
Best regards, John