Solved

How to hide Menue Items

Posted on 2011-02-17
4
377 Views
Last Modified: 2012-05-11
We are working on a expert and simple version of our application by hiding TMenu Items.

TmenuIte,.Visible := false is working well for sub items but not for items in the top row, how to hide that item ?
0
Comment
Question by:BdLm
  • 2
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
jimyX earned 250 total points
ID: 34916056
To hide the top menu item use:
MainMenu1.Items[0].Visible := false; // for the first item
MainMenu1.Items[1].Visible := false; // for the second item
and so on.
Or you can use its direct name (that particular item name):
The name of that item.Visible := false;
0
 
LVL 8

Author Comment

by:BdLm
ID: 34916310
you are right - for a simple test case it worked for us.

in our app the mainmenu is placel on a toolbar, does that change something ?
0
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 250 total points
ID: 34916437
Is it placed as buttons on the Toolbar?
If yes, then you can just refer to the button:
ToolBar1.Buttons[x].visible := false; // x can be: 0 for the first button and 1 for the second and so on

Open in new window

0
 
LVL 8

Author Closing Comment

by:BdLm
ID: 34916575
last post helped  :-)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now