BGColor Property
Property that allows you to get or set the background color of
the dialog box.
object.BGColor
= new_color
existing_color = object.BGColor
Arguments
|
object |
|
Required. A
variable containing a dialog object created by calling CreateObject or
new ActiveXControl. |
|
new_color |
|
Required. A string containing the new background
color for the dialog box. This may either be a color
name or a hexadecimal representation
of the color in HTML format. |
|
existing_color |
|
A variable to receive the existing background
color of the dialog box. |
Remarks
None.
Example
Sub main
Set Dialog = CreateObject("TPFSoftware.ScriptDialog")
OrigColor = Dialog.BGColor
Dialog.AddText "The original background color was " & OrigColor
Dialog.BGColor = "steelblue"
Set Result = Dialog.Execute
End Sub
|