Solved

Dynamic web menu

Posted on 1998-12-08
2
150 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
[X]
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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to center only a line in richedit? 4 79
creating threads in delphi 1 203
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 102
Dev express lookupcombo 3 64
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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