4D v16.3

FORM GET PROPERTIES

Home

 
4D v16.3
FORM GET PROPERTIES

FORM GET PROPERTIES 


 

FORM GET PROPERTIES ( {aTable ;} formName ; width ; height {; numPages {; fixedWidth {; fixedHeight {; title}}}} ) 
Parameter Type   Description
aTable  Table in Table of the form or Default table, if omitted
formName  String in Name of the form
width  Longint in Width of the form (in pixels)
height  Longint in Height of the form (in pixels)
numPages  Longint in Number of pages in the form
fixedWidth  Boolean in True = Fixed width, False = Variable width
fixedHeight  Boolean in True = Fixed height, False = Variable height
title  Text in Title of the form’s window

The FORM GET PROPERTIES command returns the properties of the form formName.

The width and height parameters return the form’s width and height in pixels. These values are determined from the form’s Default window size properties:

  • If the form’s size is automatic, its width and height are calculated so that all the form’s objects are visible, by taking into consideration the horizontal and vertical margins that were defined.
  • If the form’s size is set, its width and height are those manually entered in the corresponding areas.
  • If the form’s size is based on an object, its width and height are calculated in relation to this object’s position.

The numPages parameter returns the number of pages in the form, excluding page 0 (zero).

The fixedWidth and fixedHeight parameters indicate if the length and width of the form are resizable (the parameter returns False) or set (the parameter returns True).

The title parameter returns the title of the form's window as it was defined in the Property List of the Form editor. If no name was defined, the title parameter returns an empty string.



See also 

FORM GET OBJECTS
FORM SET SIZE
Open form window

 
PROPERTIES 

Product: 4D
Theme: Forms
Number: 674

 
HISTORY 

Created: 4D v6.5
Renamed: 4D v12

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)