Form Menu Question (OpenInsight 32-Bit)
At 27 AUG 2009 12:42:22PM Matthew Watson wrote:
1. Is there a way in which you can have source code get a list of all the menu items on the given form?
2. I also am having trouble hiding the top menu item. I can disable it but I would like to hide it.
The reason I wish to hide not delete is because if the user needs rights to a menu that is hidden i can set a table i created to give the user access to that menu by unhiding it without the user reloading the system since the mdi refreshs the menu is shown using my code.
I have version 7.3
At 27 AUG 2009 04:36PM Richard Hunt wrote:
Answer to item 1…
DECLARE FUNCTION UTILITYMENU_ITEMS=UTILITY('OBJECTLIST',@WINDOW,'MENU')
At 27 AUG 2009 05:04PM Matthew Watson wrote:
Richard,
Thanks for the quick response on question #1 I have tried it and it works great!
At 29 AUG 2009 05:48AM Kauko Laurinolli wrote:
Search the forum for "Deletemenu" and you will find the solution for question 2.
At 01 SEP 2009 05:28AM John Taylor wrote:
I use the following code to hide / unhide a menu item according to user rights.
u=set_property @window:'.MENU.SECURITY.USER_MAINTENANCE','VISIBLE',0)
where "SECURITY" is the menu and "USER_MAINTENANCE" is the menu item.
At 03 SEP 2009 02:55PM Matthew Watson wrote:
I saw that you could delete a menu but that is not what I want. I need to be able to give rights to the menu then take them away without having to have the user log off the program and log back in.
I found a workaround that is not the best but is working OK for now.
At 03 SEP 2009 02:57PM Matthew Watson wrote:
I have done that with the menu items below the main set but i for the life of me hide the main set without deleting. So the main set i just have disabled.
At 03 SEP 2009 03:33PM Ray Chan wrote:
Hi Matthew,
Several years or so, we had a need to keep our menu hidden. We contacted Mr. Sprezz's tech support. They deliver a really slick solution that I think might work for you. Very easy to implement. Very reliable as we have been using their patch without any problems.
Contact them. It will save you some time and it's fairly painless.
FWIW,
Ray Chan