4D v13.4FORM SET SIZE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
FORM SET SIZE
FORM SET SIZE
The FORM SET SIZE command allows you to change the size of the current form by programming. The new size is defined for the current process; it is not saved with the form.
If you want the size of the form to be set automatically, you must use the following syntax: FORM SET SIZE(horizontal;vertical;*) In this case, you must pass the margins (in pixels) that you want to add to the right and bottom of the form in horizontal and vertical. Object-based sizeIf you want the form size to be based on an object, you must use the following syntax: FORM SET SIZE(object;horizontal;vertical) In this case, you must pass the margins (in pixels) that you want to add to the right and bottom of the object in horizontal and vertical. You cannot pass the * parameter. Fixed sizeIn you want to have a fixed form size, you must use the following syntax: FORM SET SIZE(horizontal;vertical) In this case, you must pass the width and height (in pixels) of the form in horizontal and vertical. The FORM SET SIZE command changes the size of the form, but also takes into account the resizing properties. For example, if the minimum width of a form is 500 pixels and if the command sets a width of 400 pixels, the new form width will be 500 pixels. The following example shows how an Explorer type window is set up. The following form is created in the Design environment : The size of the form is “automatic”. The window is displayed using the following code: $ref:=Open form window([Table 1];"Form1";Plain form window;Horizontally Centered;Vertically Centered;*) The right part of the window can be displayed or hidden by clicking on the increase/decrease option: The object method associated with this button is as follows: Case of |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D 2004 SEE ALSO
FORM SET HORIZONTAL RESIZING |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||