August 24, 2001 - Forcing the Trusted Application's Status Bar
August 24, 2001 Forcing the Trusted Application's Status Bar Tips: August 2001
Yehuda Shiran, Ph.D.
|
"Open this file ..."
instead of "Save this file to disk."
The HTA window will pop up. Click the Go Away
button. The bar at the bottom edge of a window is referred to as the "status bar." By default, dialog boxes pop up with the status bar. Trusted applications, on the other hand, pop up without the status bar. Let's pop up a simple modeless dialog box. Now, pop up again the HTA. Click the Pop A Dialog Box
button. You'll see that the dialog box does not display the status bar.You can change the default behaviors of trusted and untrusted applications with respect to the status bar. Let's see an untrusted application without the status bar, accomplished by:
window.showModelessDialog('010824.html','','dialogLeft:10;status:no')
Let's force a trusted application to pop up a dialog box with the status bar. This HTA includes the following call:
window.showModalDialog('010824.html','','status:yes');
Click the Pop A Dialog Box
button. Observe the status bar at the bottom of the dialog box. The possible values of the status
property are: yes
, no
, 1
, 0
, on
, and off
. Their semantics are intuitive.For more on modal and modeless dialog boxes, go to Column 90, Modal and Modeless Dialog Boxes.