guides:programming:programmers_reference_manual:autosizewidth

AUTOSIZEWIDTH property

All controls.

Returns or sets the controls autosize width status. If true, the control is autosized to the form’s width. If false, the control is not autosized to the form’s width.

autosizeState = Get_Property(objectname,”AUTOSIZEWIDTH”)

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

Values passed in Set_Property():

ValueDescription
StatusBoolean true (1) or false (0)

Values returned by Get_Property and Set_Property

ValueDescription
autosizeStatethe Boolean status of the control’s autosize width property.
existingStatethe Boolean status of the control’s autosize width property, when Set_Property was run.
Declare function Get_Property, Set_Property

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

autosizeState = Get_Property(@window:’.COMMENTS’,’AUTOSIZEWIDTH’)

if autosizeState then

  newState = 0

end else

  newState = 1

end

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