AddMonoText Method
Adds text to the dialog box in a monospaced font.
object.AddMonoText
text, inline_style
Arguments
|
object |
|
Required. A
variable containing a dialog object created by calling CreateObject or
new ActiveXControl. |
|
text |
|
Required. The text to place in the dialog
box. |
|
inline_style |
|
Optional. The cascading style sheet (CSS)
style to use to display the text. |
Remarks
Monospaced text is useful for displaying source code or columns of text.
For more information about CSS styles, see a book on HTML.
Example
Sub main
Set Dialog = CreateObject("TPFSoftware.ScriptDialog")
Dialog.AddMonoText "Hello, World"
Dialog.AddMonoText "Hello, Red World", "color:red"
Set Result = Dialog.Execute
End Sub
|