Informix Error -50126
Cause and resolution
Accelerators are not allowed on the menu bar. The accelerator will be ignored.
This message is generated by ixMenu. Items on the menu bar can have mnemonics but not accelerators. You should rewrite your menu to eliminate accelerators on menu bar items.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50126 is raised by the ixMenu class in the Window Painter GUI builder library — per the official guidance:
This message is generated by ixMenu. Items on the menu bar can have mnemonics but not accelerators. You should rewrite your menu to eliminate accelerators on menu bar items.
- Accelerators are not allowed on the menu bar. The accelerator will be ignored, 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
- -50133 — "Cannot create a menu whose parent menu title is "-"." 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.
Accelerators are not allowed on the menu bar. The accelerator will be ignored.