Informix Error -1150
-1150 Window is too small to display this menu.
Review the OPEN WINDOW statement for the current window in conjunction with this MENU statement. The window must be at least two rows tall, and it must be wide enough to display the menu title, the longest option name, two sets of three-dot ellipses, and six spaces. Revise the program to make the window larger or to give the menu a shorter name and shorter options.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1150 fires when a window opened via OPEN WINDOW isn't large enough for the MENU statement
displayed in it — per the official guidance, the window needs at least two rows of height, and
enough width for the menu title, the longest option name, two sets of ellipses, and six spaces.
- A window opened smaller than this minimum size requirement, per the official guidance — the direct, only cause.
- A menu with a long title or option name added later, without re-checking the window's width against the new minimum required.
Solutions / Resolution
- Enlarge the window, per the official guidance, to meet the minimum height/width requirement.
- Or shorten the menu title and option names, per the official guidance, if enlarging the window isn't the preferred fix.
Examples
A window too small for the menu
OPEN WINDOW w1 AT 1, 1 WITH FORM "order_entry"
ATTRIBUTE(FORM LINES 1, COLUMNS 10)
MENU "Order Management Options"
COMMAND "View" "View an order"
COMMAND "Cancel" "Cancel an order"
END MENU
-- -1150: the window is smaller than this menu's title/option requirements
Diagnostic Checks
- Compute the minimum required width (title, longest option name, two ellipses, six spaces) and height (at least 2 rows), and compare against the window's actual dimensions.
Related Errors / Related Topics
- -1142 — "Window is too small to display this form." A related window-sizing error, about a form rather than a menu.
The window doesn't meet the minimum size for this menu's title/options — enlarge the window or shorten the menu text.