Solved

Dynamic web menu

Posted on 1998-12-08
2
146 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

20 Experts available now in Live!

Get 1:1 Help Now