Home » Developer & Programmer » Forms » Menu disable/Enable
Menu disable/Enable [message #80509] Fri, 04 October 2002 19:32 Go to next message
Viswa
Messages: 8
Registered: October 2002
Junior Member
I have a problem with Menu item being visible, when it shouldn't be. I will appreciate if some one can answer this for me.

I have the following code

When-New-Form-Instance
----------------------
Set_Menu_Item_Property('Search_Menu.Agent_Code', VISIBLE, PROPERTY_FALSE);
.....
.....
and then many other lines of code.

I have observed the menu item is not disabled. But when I incorporated MESSAGE just after the disable statement then it is working.

When-New-Form-Instance
----------------------
Set_Menu_Item_Property('Search_Menu.Agent_Code', VISIBLE, PROPERTY_FALSE);
MESSAGE('Dummy message...');
MESSAGE('Dummy message...');
......
......
and then many other lines of code.

But I do not want to insert the unnecessary message.
I tried with SYNCHRONIZE statement just after the Set_Menu_Item_Property statement, but no use.

Your reply to viswapsp@yahoo.com is highly appreciated.

Thanks
Re: Menu disable/Enable [message #80510 is a reply to message #80509] Fri, 04 October 2002 20:02 Go to previous message
Venu
Messages: 44
Registered: September 1999
Member
instead of using visible , u have to use
enable .

Set_Menu_Item_Property('Search_Menu.Agent_Code', ENABLED, PROPERTY_FALSE);
Previous Topic: Help, loading Developer6i on Win XP Pro machine
Next Topic: Urgent !
Goto Forum:
  


Current Time: Wed Apr 24 06:45:14 CDT 2024