4. System Classes : FrameExec Class : IsMaximized Attribute
 
Share this page                  
IsMaximized Attribute
Data Type: smallint
4GL Access: RW
Reflects at runtime the actual state that a frame is in at the time the attribute is interrogated. Setting it maximizes the frame if it is not already, filling the entire screen, until the user clicks the restore icon in the frame's title bar or the program changes the value to FALSE. The frame will then revert to normal size as defined by the FrameExec.
Valid values include:
TRUE
Specifies that the frame should be displayed as maximized. If the frame is already maximized, there is no visible change.
FALSE
Specifies that the frame, if currently maximized, should be displayed in its normal restored state. If not currently maximized, there is no visible change.
Note:  The maximization or restoration of the frame is done after the 4GL activation block completes in which the IsMaximized value is set. Trying to determine frame dimensions after setting IsMaximized but before the 4GL activation block completes returns the values before IsMaximized was set. If you need the new frame dimensions after setting IsMaximized before completing the same 4GL activation block, send a UserEvent from within that block to determine the new frame dimensions.
See also FrameSource.IsMaximized (see IsMaximized Attribute).