Was this helpful?
SetInnerMargins Method
The SetInnerMargins method sets the value of all the inner margins (left, top, right, and bottom) of an EntryField. Setting all the inner margins of a field simultaneously has performance benefits because it reduces the number of times the EntryField’s parent CompositeField needs to be reconfigured.
This method has the following syntax:
integer = EntryField.SetInnerMargins(left = variable, top = variable,
          right = variable, bottom = variable)
This method has the following parameters:
left (integer)
(Required) Defines the left margin in pixels between the field border (if any) and the data area
top (integer)
(Required) Defines the top margin in pixels between the field border (if any) and the data area
right (integer)
(Required) Defines the right margin in pixels between the field border (if any) and the data area
bottom (integer)
(Required) Defines the bottom margin in pixels between the field border (if any) and the data area
The SetInnerMargins method returns ER_OK if successful or ER_FAIL if not. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.
For example, assume that you want to set all of the inner margins of an EntryField to 4. You can use this method to set the inner margin values with the following 4GL code:
/* declarations */
ret_value = integer;
inner_margin = integer;
...
/*
/* Set inner margin values of an entry field named salary_fld to 4 */ inner_margin = 4; ret_value = fld.SetInnerMargins(left = inner_margin, top = inner_margin, right = inner_margin, bottom = inner_margin );
Last modified date: 12/20/2023