Re: Remove the 'window' menu item

From: Mark Freudenberg <freud_at_gate.net>
Date: 1997/01/09
Message-ID: <5b1fs4$1kvo$1_at_news.gate.net>#1/1


Hello,

To make the Window menu option go away do the following.

Create a custom menu with an item in it called WINDOW. Make that item a magic item of Window (change the magic item type in the property sheet from plain to magic, change the magic item from none to window, and change the command type from pl/sql to null). Save and generate the menu.

Attach the menu to the form (in the form property sheet change menu module from DEFAULT to the new menu you just created).

Create a When-New-Form-Instance trigger (if one doesn't already exist) and add the following code:
Set_Menu_Item_Property('menu_name.Window', VISIBLE, Property_False); Set_Menu_Item_Property('menu_name.Window', ENABLED, Property_False);

That should take care of the Window menu item. You need to use both statements because the first makes it invisible but without the second, you can still click where it is supposed to be and get the menu options. That's why both are needed.

Hope this help.

Thanks.

Mark Freudenberg

wychan_at_vol.net (Chan Wai Yuen) wrote:

>How to remove the menu item 'Window' in forms4.5?
 

>Thanks for any advice.
 

>Chan Wai Yuen
>wychan_at_vol.net
Received on Thu Jan 09 1997 - 00:00:00 CET

Original text of this message