4D v15

MAXIMIZE WINDOW

Home

 
4D v15
MAXIMIZE WINDOW

MAXIMIZE WINDOW  


 

 

Originally introduced in 4D v14 R3

The effect of the MAXIMIZE WINDOW command on Windows has been modified for cases when it is applied to a window that is controlled by size constraints (for example, a form window):

  • If none of the size constraints is in conflict with the target size, the window is set to the "maximized" state just like in previous releases (i.e., it is resized to fit the size of the Multiple Document Interface (MDI) parent window; its title bar and borders are hidden, and the title bar's buttons (minimize, restore and close) are placed to the right of the application menu bar).
  • However, if at least one of the size constraints is in conflict (for example, if the MDI window width is 100 and the maximum form window width is 80), the window is not set to the "maximized" state, but only resized to its maximum allowed size. This size is defined either by the MDI dimension or the constraint.
    With this new behavior, the interface remains consistent when windows with constraints are resized.

Example  

The following form is defined with a size constraint (maximum width=400):

The button script only contains:

 MAXIMIZE WINDOW(Current form window)

In the following context, if the user clicks on the button:

... the window is not set to the "maximized" state; instead only its height is extended:

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)