Solved

Dynamic web menu

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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
can't find the executable in Simulator 1 101
how can i search if string exist in array ? 3 63
Base1 Encode/Decode 3 82
Tidtcpserver listening on multiports? 1 35
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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