Language Reference Guide : 4. System Classes : EntryField Class : Lines Attribute
 
Share this page                  
Lines Attribute
Data Type: integer
4GL Access: RW
The Lines attribute specifies the number of lines displayed in a multiline entry field.
OpenROAD uses the value of this attribute in combination with the height of the field's specified font to determine the actual height of the field. The height of the font is multiplied by the number of lines to obtain the height. If you change the font, OpenROAD adjusts the field height to accommodate the number of lines specified.
The size of an entry field is always rounded to a whole number of lines and characters per line. Consequently, when you set the Width and Height attributes for an entry field, OpenROAD uses the current setting of the field's font attributes to calculate the closest integral number of lines and characters per line for the field. It also adjusts the actual Width and Height attributes to match those calculations. This approach makes the fields more portable across window systems.
Note:  You cannot set this attribute to one to create a single-line entry field. To create a single-line entry field, you must set the IsMultiLine Attribute to FALSE.