In his thread on the source code forum http://www.powerbasic.com/support/pb...ad.php?t=41714
Mel Bishop added the remark :
Well, just place the messagebox in a separate thread.
Below you find an example that shows the general idea.
Arie Verheul
Mel Bishop added the remark :
My original purpose for playing with it was to bring up a MessageBox without stalling the program.
... Never did find an answer for that one.
... Never did find an answer for that one.
Below you find an example that shows the general idea.
Arie Verheul
Code:
#Break On #Include "win32api.inc" Function PBMain () As Long Dim MsgText As Global Asciiz*60 Dim Response As Global Long Local hThread, ThreadVar As Dword Local I,J,K,L As Dword MsgText = "Just say so if you want to stop when this set is finished" Do For J = 2 To 9 For I = 1 To 10 K = I * J Locate I + 2, 5 Print Using$("## x ## = ###",I,J,K) Sleep 100 Next Sleep 1000 Cls Next Incr L If L = 1 Then Thread Create Message (ThreadVar) To hThread Loop Until Response = 6 End Function Thread Function Message (ByVal ThreadVar As Dword) ' ThreadVar is a dummy variable MessageBox 0, MsgText, "Test Message Box" , 4 To Response End Function
Comment