When-Window-Resized trigger fires when a window is resized in Oracle Forms, which can be by the user or programmatically. Even if the window is not currently displayed, resizing the window programmatically fires the When-Window-Resized trigger. Also this trigger fires at form startup, when the main window is first activated.
Below is just the example to maximize forms_mdi_window window automatically, if user clicks on resize/restore button of a window in Oracle Forms. Write the below code in When-Window-Resized trigger at form level.
IF UPPER(get_window_property(forms_mdi_window, window_state)) = 'NORMAL' THEN SET_WINDOW_PROPERTY(forms_mdi_window, window_state, maximize); END IF;