You have to get the RibbonMenuItem, change the visible property and then Set the changed Item.
Here an short example that uses GetItemByTag to get the item. You may also use different ways.
RibbonMenuItem lrmi_Item
IF rbb_menu.GetItemByTag ("TheTagOfTheItemYouWantToGet", lrmi_Item) = 1 THEN
lrmi_Item.Visible = FALSE
rbb_menu.SetItem (lrmi_Item)
END IF
There are no replies made for this question yet. However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.
You can't use the GetItemByTag function with RibbonMenuItem. Returns -1
It is a little bit more tricky to make a RibbonMenuItem invisible
Pau Haro has the solution here
https://community.appeon.com/index.php/qna/q-a/getting-ribbonmenuitem-issues
Thanks a lot
Kostas
As Pau shows the items of RibbonMenu seems not to be accessible from RibbonBar but only from parent RibbonMenu.