When Karen was having trouble with the dialog box interrupting the RBase TimeOut settings execution, I fixed her up with a simple solution of a few lines of code, but the code only worked if the RBase window has focus. I told her I would conjure up an alternative. I made a dialog box that will return 2 values to RBase similar to the way the RBase Dialog works. You can pass in various parameters to determine the Icon that is shown, the number of and the context of the buttons, whether or not a Textbox is displayed for user input (which is returned to RBase if shown) and a especially important, the TimeOut value (in MilliSeconds) can be set and if it is set, it displays a countdown in 5 second increments and if it times out returns in one of the variables the fact it timed out. You can pass in up to 380 characters for the Dialog Message in the parameter list or if more is required, you can supply a simple text file in the directory whose contents will be shown instead. You could make the dialog larger than the screen by setting SCROLL="YES" in the HTA file. The Dialog is rendered HTML in the Security context of HTA, so there are no problems with the security model of IExplorer. It is rendered without menus, etc, so it looks exactly like a "Windows" dialog. There is a ReadmeDia.txt file in the BdcDia.Zip file that has everything to use it including the standard Icons. There is lengthy explanation in the RBase demo file provided so you can see how it works and set the elements of the Dialog to suit you including Color, Fonts, FontColor, etc. Most of the HTA is done in JScript and the final rendering is via DHTML. This is an excellent dialog to include in your code where users are likely to leave their computers with the dialog displayed and go home. You can set it for simple OkOnly or Yes/No with the timer running and if they leave it will timeout and you can direct RBase to behave accordingly upon receiving the TimeOut value.
Yours for the taking at www.byerley.net/BdcDia.zip in a 12k download.....(How can all that happen in 12K ;-) System Requirements: The Latest version of WSH 5.6 although I believe everything should work OK with 5.1 that came with W2k. Otherwise, 5.6 can be had at http://msdn.microsoft.com/scripting You need to download the Documentation if you are going to modify or roll your own as well as the script debugger (although a version of the debugger comes with Office if you have that installed) ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l ================================================ TO SEARCH ARCHIVES: http://www.mail-archive.com/rbase-l%40sonetmail.com/
