On Feb 22, 2006, at 10:39 AM, [EMAIL PROTECTED] wrote:
I have been using standard Msgbox's to notify the user that a transaction was completed successfully. However, its annoying to have to click "OK" each time. So I made a little window with a 3 second timer that will display then get out of the way without user action. Can I alter a regular message box to do that?
No I don't believe there is. A MsgBox is a special object because it stops all application processes (I believe even threads) until it is dismissed. There is also no way to dismiss a MsgBox without user interaction, except possibly a simulated "Return" key-press (which I think you can do with the MBS plugin).
The same issues can occur with MessageDialog though it is not quite as low-level as MsgBox and may not stop as many operations.
Looks like you need to write your own MessageDialog to get the auto- dismiss functionality.
Depending on your project, you could have a separate Activity window which the user could leave closed unless they want to see it. Then just use a ListBox to display all of the transaction messages (kinda like a History, or a browsers "Downloads" window). In the case of an error, you can display the MsgBox which also asks the user if they would like to display the Activity window for more information, and will open the window for them if "Yes".
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
