SetMargins

>>-anEditControl~SetMargins(--left--,--right--)----------------><


The SetMargins method sets the left and right margins for the associated edit control. The margins determine the spacing to the left and right of the edit control.

Arguments:

The arguments are:

left

The left margin, specified in screen pixels.

right

The right margin, specified in screen pixels.

Example:

The following example sets the margins for edit control TEXT such that the left indent is 10 screen pixels and on the right there is a spacing of 5 pixels between the text and the frame of the edit control:

edit = MyDialog~GetEditControl("TEXT")
if edit == .Nil then return
edit~SetMargins(10, 5)
     parse value edit~Margins with left right
     say "The new left margin is" left" and the new right margin is" right