Informix Error -50133: Cannot create a menu whose parent menu title is "-".
Cause and resolution
Cannot create a menu whose parent menu title is "-".
This message is generated by ixMenu. You cannot create a pulldown menu whose title is '-' because this conflicts with the use of '-' as a menu separator, and separators cannot contain other menu items. This rule is true even in the case of a '-' item on the menu bar.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50133 is raised by the ixMenu class in the Window Painter GUI builder library — per the official guidance:
This message is generated by ixMenu. You cannot create a pulldown menu whose title is '-' because this conflicts with the use of '-' as a menu separator, and separators cannot contain other menu items. This rule is true even in the case of a '-' item on the menu bar.
- Cannot create a menu whose parent menu title is "-", per the official guidance — the direct, documented condition.
Solutions / Resolution
- Adjust the calling code to respect the constraint named in the message, per the official guidance — no other resolution is documented.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixMenuflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50126 — "Accelerators are not allowed on the menu bar. The accelerator will be ignored." Another
ixMenu-related condition in this set. - -50125 — "Menu separators are not allowed on the menu bar. A dash will be drawn." Another
ixMenu-related condition in this set.
Cannot create a menu whose parent menu title is "-".