Sets the target text displayed in the dialog.

Syntax:

SetTargetText(TargetText As String)
Parameters: TargetText Target text to be displayed.

Example:
Dim Dlg As StringWidthDialog

Set Dlg = Application.Tools.RestypeEditors.StringWidthDialog

Call Dlg.SetSourceText("Source")
Call Dlg.SetTargetText("Target")

Dlg.Width = -1
Dlg.EnableWidthChecking = False

If (Dlg.Show) Then
    MsgBox "Changed Width"
End If

See also:

Class StringWidthDialog


Last Updated: 04/27/05