guides:programming:programmers_reference_manual:anchorright

ANCHORRIGHT property

All controls.

Returns or sets the controls right anchor status. If true the control is right anchored to the form. If false, the control is not right anchored to the form.

anchorState = Get_Property(objectname,”ANCHORRIGHT”)

existingState = Set_Property(objectname,”ANCHORRIGHT”,status)

Values passed in Set_Property():

ValueDescription
StatusBoolean true (1) or false (0)

Values returned by Get_Property and Set_Property

ValueDescription
anchorStatethe Boolean status of the control’s right anchor.
existingStatethe Boolean status of the control’s anchor, when Set_Property was run.
Declare function Get_Property, Set_Property

/* retrieve the ANCHORRIGHT property of the COMMENTS control  and if true set to false and vice versa.

anchorState = Get_Property(@window:’.COMMENTS’,’ANCHORRIGHT’)

if anchorState then

   newState = 0

end else

    newState = 1

end

existingState = Set_Property(@window:’.COMMENTS’,’ANCHORRIGHT’,newState)
  • guides/programming/programmers_reference_manual/anchorright.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1