Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to hide Menue Items

Posted on 2011-02-17
4
381 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi cmd execution 6 67
Run video youtube webbrowse 10 65
Working with hours 3 65
select query - oracle 16 100
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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