Solved

Dynamic web menu

Posted on 1998-12-08
2
147 Views
Last Modified: 2010-04-04
I wish to have an "On The Web" menu which is created according to a stringlist or registry or something that i can update from outside the program. How might I do this?
0
Comment
Question by:cando
2 Comments
 
LVL 4

Expert Comment

by:BoRiS
ID: 1349795
cando

I'm not sure I understand what you need, are you looking for a menu that is updated when the web browser is open and add things from there, or just a menu that has your options in it for a web application you have written...

Later
BoRiS

0
 

Accepted Solution

by:
mjustin earned 70 total points
ID: 1349796
Hi,

you can create a menu item at runtime using code like the following (example for an 'undo' menu item:

miUndo := TMenuItem.Create(self);
          with miUndo do begin
              Caption := cCaptionUndo;
              OnClick := Undo;
              if rpShowShortcuts in PopupOptions
                 then ShortCut := menus.ShortCut(Word('Z'), [ssCtrl]);
          end;

and then add this menu item to your menu

MyMenu.items.Add(miUndo);

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

896 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

11 Experts available now in Live!

Get 1:1 Help Now