WinStudio
IWSFormComponent interface
Sets or returns a value that determines whether a form component is justified right, left, center, or uses the system default setting.
object.Justify = string
Part |
Description |
| object | Required. A reference to a valid form object. |
| string | Required. Determines the value to which the property
should be set. Valid values include:
|
object.Justify
Part |
Description |
| object | Required. A reference to a valid form object. |
In the get syntax, a return value of:
Sub Main()
Dim myComp As String
myComp = ThisForm.Components("static1").Justify
Application.ShowMessage(myComp)
If myComp = "R" Then
myComp = "C"
Application.ShowMessage("Label will be centered.")
ElseIf myComp = "C" Then
myComp = "L"
Application.ShowMessage("Label will be left-justified.")
Else
myComp = "R"
Application.ShowMessage("Label will be right-justified.")
End If
End Sub