Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

quastion in HOW TO REMOVE THE 'WINDOW' MENU FROM ORACLE FORMS

ak25Feb 4 2007 — edited Feb 4 2007
hi
this is from metalink to remove the 'window' menu.

Subject: HOW TO REMOVE THE 'WINDOW' MENU FROM ORACLE FORMS CUSTOM MENU?

Problem Description:
====================

How can the Microsoft Windows 'Window' menu be removed from my Oracle Forms
custom menu?


Problem Explanation:
====================

When you run a form with a custom menu on the Microsoft Windows operating
system, the 'Window' menu is automatically added and maintained because it is
a Windows standard. Even if the custom menu has no items in its main menu,
the Window menu will be displayed.


Solution Description:
=====================

To hide the 'Window' menu:

1. Create a new magic menu item called "Window" in the main menu of the
custom menu.

Name: Window
Type: Magic
Magic Item: Window
Command Type: Null
Label: (blank) do not put a label on this menu item

NOTE: make sure you completely blank out the 'Label' field, otherwise
the 'Window' menu will be disabled but not hidden.

2. Attach the custom menu to the form using the Form Module Property sheet.

3. Use SET_MENU_ITEM_PROPERTY in a Form level When-New-Form-Instance trigger
to hide the 'Window' menu:

Oracle Forms 4.0:
SET_MENU_ITEM_PROPERTY('MAIN_MENU.WINDOW', DISPLAYED, PROPERTY_OFF);
SET_MENU_ITEM_PROPERTY('MAIN_MENU.WINDOW', ENABLED, PROPERTY_OFF);

Oracle Forms 4.5 or higher:
SET_MENU_ITEM_PROPERTY('MAIN_MENU.WINDOW', DISPLAYED, PROPERTY_FALSE);
SET_MENU_ITEM_PROPERTY('MAIN_MENU.WINDOW', ENABLED, PROPERTY_FALSE);


Solution Explanation:
====================

A "Magic" menu item will replace the default system menu, and can then be
hidden using the SET_MENU_ITEM_PROPERTY Oracle Forms built-in.

=====

i make up to step #2 then i dont know how to attach custum menu to the form

" 2. Attach the custom menu to the form using the Form Module Property sheet."


please help to complate the steps
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2007
Added on Feb 4 2007
1 comment
4,597 views