>>>>>Cool! Where'd you hear this?
>>>>
>>>>I saw it on this page:
>>>>
>>>>
http://computer-consulting.com/vfptips.htm>>>>
>>>>VFP7 features from DevCon99
>>>>...
>>>>Messagebox has a new timeout property
>>>>...
>>>
>>>Since the Windows MessageBox function does not provide for a timeout parameter, I guess the new MESSAGEBOX() will no longer be a wrapper around it, eh?
>>
>>I think that it will call one of the three functions (MessageBox(), MessageBoxEx(), or MessageBoxIndirect()). Implementation of this style of Messagebox() is available now via the WSH. Unfortunately, while it seems to work fine in a script file, it doesn't when called from VFP.
>
>I am still curious as to how the timeout is implemented. MessageBoxEx() and MessageBoxIndirect() don't accept a timeout as an option either...
Erik,
I've seen this done with the standard MessageBox() function wrapped in a DLL. While I haven't seen the source code, I can verify that it does use the function. How it's done? I would guess that it hooks into the Windows timer and uses the messaging services in order to time it out.
George
Ubi caritas et amor, deus ibi est