Hi,
I'm having some troubles w/ callbacks, I think. I have isolated the code to what follows.
My main dialog calls an included .bas file which displays a data input dialog. When the user is satisfied with the data on that dialog, he can press the "Accept" button, which saves the data to a global array, executes the following *post* back to the main dialog, and closes quite gracefully.
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
DIALOG POST TheMainDialog, %WM_USER + 500, 0, 0
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Back in the Main Dialog the following Case intercepts the post, which I can tell that it does when I uncomment the "MSGBOX" line, and the balance of the Case works fine. When I comment the "MSGBOX" line, however, it decides it can skip the rest of the active commands in the dialog. The SLEEP command seems to have no effect on the problem one way or another... I put it in to see if it needed more time to do *something*.
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
CASE %WM_USER + 500
' msgbox "Info Accepted"
' sleep 1000
DrawMap CBHNDL
DIALOG SET TEXT CBHNDL, "ChiliDogs"
FUNCTION = 1
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
I have no good way of knowing if this is normal behavior or not...
Ken
I'm having some troubles w/ callbacks, I think. I have isolated the code to what follows.
My main dialog calls an included .bas file which displays a data input dialog. When the user is satisfied with the data on that dialog, he can press the "Accept" button, which saves the data to a global array, executes the following *post* back to the main dialog, and closes quite gracefully.
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
DIALOG POST TheMainDialog, %WM_USER + 500, 0, 0
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Back in the Main Dialog the following Case intercepts the post, which I can tell that it does when I uncomment the "MSGBOX" line, and the balance of the Case works fine. When I comment the "MSGBOX" line, however, it decides it can skip the rest of the active commands in the dialog. The SLEEP command seems to have no effect on the problem one way or another... I put it in to see if it needed more time to do *something*.
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
CASE %WM_USER + 500
' msgbox "Info Accepted"
' sleep 1000
DrawMap CBHNDL
DIALOG SET TEXT CBHNDL, "ChiliDogs"
FUNCTION = 1
'+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
I have no good way of knowing if this is normal behavior or not...
Ken
Comment