Auto-close |
Top Previous Next |
Here you specify the global variables related with the Auto-Close feature.
"Flag" variable: When you assign the TRUE value to this variable before calling the Message() function, you will activate the "Auto-Close" feature for the next Message only. This should be a BOOLEAN value, therefore a BYTE type field should be enough. This variable has to be of the TRHEAD type.
"Default answer" variable: Your message() may have several buttons; you may specify which one you want to be the answer when the delay time expires. As this is a button equate, this should be a LONG and THREADed variable. If you don't specify a "default answer" at run-time, the default button for the window will be used as answer.
"Delay" variable: The time in seconds for the window to auto-close without user intervention. If you activate the auto-close feature by the "Flag" variable, you should fill this variable as well. The data type could be any that you consider enough to store the longest delay you may use (for example, a simple BYTE will hold up to 255 seconds, i.e. more than 4 minutes). This variable has to be of the TRHEAD type.
"Show time left" variable: Set this variable status to TRUE if you want feedback on the remaining time. If you don't set this variable, you won't see any weird in the message until it suddenly closes. This should be a BOOLEAN value, therefore a BYTE type field should be enough. This variable has to be of the TRHEAD type too.
Note: These variables would normally be in your DCT, unless you are doing a DCT-less app. In this case you'll need to add the variables to the global area of your app. |