Left, Top
These two properties together indicate the location of an object.
Usage |
oObject.Left = nPosition nPosition = oObject.Left oObject.Top = nPosition nPosition = oObject.Top |
Example |
frmMyForm = CREATEOBJECT("FORM") frmMyForm.Show() frmMyForm.AddObject("chkMyCheck", "Checkbox") frmMyForm.chkMyCheck.Visible = .t. frmMyForm.chkMyCheck.Left = 10 frmMyForm.chkMyCheck.Top = 20 * now add another object under the first frmMyForm.AddObject("chkMyOtherCheck", "Checkbox") frmMyForm.chkMyOtherCheck.visible = .t. frmMyForm.chkMyOtherCheck.Left = frmMyForm.chkMyCheck.Left frmMyForm.chkMyOtherCheck.Top = ; frmMyForm.chkMyCheck.Top + 20 |
See Also |