Solved

How to hide Menue Items

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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