Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Menus in Designer

edited June 2006 in General
Hello

Before with the previous version 9.x, I had a my own menu inside the
designer. But Now with the last version 10.x, I can not. The new class is
TppTBCustomItem. I have renamed in my code the class TMenuItem for this one
but only appears the first option in the menu.
My old code is the following :

with ppDesigner.Menu do
begin
ppmMiMenu :=TMenuItem.Create(ppDesigner.Menu);
with ppmMiMenu do
begin
Caption := rsOpcionesAdicionales;
ppDesigner.Menu.Items.Add(ppmMiMenu);
end;

ppmSql:= TMenuItem.Create(ppmMiMenu);
with ppmSql do
begin
Caption := rsEditarConfiguracion;
ppmMiMenu.Add(ppmSql);
OnClick := Editar_SQL;
end;

ppmLinea:= TMenuItem.Create(ppmMiMenu);
with ppmLinea do
begin
Caption := '-';
ppmMiMenu.Add(ppmLinea);
end;

ppmOnePass:= TMenuItem.Create(ppmMiMenu);
with ppmOnePass do
begin
Caption := rsOnePass;
ppmMiMenu.Add(ppmOnePass);
OnClick := ConfigurarPasadas;
end;
end;

Can anyone help me?

Thank in advance.

Comments

This discussion has been closed.